Skip to content

Security: Unbounded async queue key growth can cause memory exhaustion#8506

Open
tuanaiseo wants to merge 1 commit intoDevExpress:masterfrom
tuanaiseo:contribai/fix/security/unbounded-async-queue-key-growth-can-cau
Open

Security: Unbounded async queue key growth can cause memory exhaustion#8506
tuanaiseo wants to merge 1 commit intoDevExpress:masterfrom
tuanaiseo:contribai/fix/security/unbounded-async-queue-key-growth-can-cau

Conversation

@tuanaiseo
Copy link
Copy Markdown

Problem

actions stores promises by arbitrary key and never deletes completed entries. Repeated unique keys (especially attacker-controlled) can grow memory indefinitely, enabling a denial-of-service condition in long-lived processes.

Severity: medium
File: src/utils/async-queue.js

Solution

Remove queue entries after completion (finally cleanup), enforce key limits, and avoid accepting untrusted high-cardinality keys directly.

Changes

  • src/utils/async-queue.js (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

`actions` stores promises by arbitrary `key` and never deletes completed entries. Repeated unique keys (especially attacker-controlled) can grow memory indefinitely, enabling a denial-of-service condition in long-lived processes.

Affected files: async-queue.js

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
@testcafe-need-response-bot testcafe-need-response-bot bot added the STATE: Need response An issue that requires a response or attention from the team. label Apr 6, 2026
@Bayheck Bayheck added STATE: PR Review Pending A note that this PR will be reviewed. and removed STATE: Need response An issue that requires a response or attention from the team. labels Apr 10, 2026
@github-actions
Copy link
Copy Markdown

Thank you for your contribution to TestCafe. When a member of the TestCafe team becomes available, they will review this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

STATE: PR Review Pending A note that this PR will be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants