Skip to content

JS: Track response data through promises - #22268

Merged
asgerf merged 1 commit into
github:mainfrom
theinfosecguy:js-response-threat-promise-chain
Aug 5, 2026
Merged

JS: Track response data through promises#22268
asgerf merged 1 commit into
github:mainfrom
theinfosecguy:js-response-threat-promise-chain

Conversation

@theinfosecguy

Copy link
Copy Markdown
Contributor

Tracks client response data into promise fulfillment values under the response threat model.

This covers .then(...) chains where response data flows into sinks such as DOM XSS sinks.

Tests:

  • codeql test run javascript/ql/test/query-tests/Security/CWE-079/DomBasedXssWithResponseThreat --search-path=/Users/keshavmalik/Documents/codeql --threads=0
  • codeql test run javascript/ql/test/library-tests/frameworks/ClientRequests javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss javascript/ql/test/query-tests/Security/CWE-079/DomBasedXssWithResponseThreat javascript/ql/test/query-tests/Security/CWE-078/CommandInjection javascript/ql/test/query-tests/Security/CWE-200/FileAccessToHttp.qlref javascript/ql/test/query-tests/Security/CWE-829/InsecureDownload.qlref javascript/ql/test/query-tests/Security/CWE-912/HttpToFileAccess.qlref --search-path=/Users/keshavmalik/Documents/codeql --threads=0

@theinfosecguy
theinfosecguy requested a review from a team as a code owner August 1, 2026 14:57
@asgerf asgerf self-assigned this Aug 5, 2026

@asgerf asgerf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks great!

@asgerf
asgerf merged commit bfc7a8b into github:main Aug 5, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants