Skip to content

Escape AX inventory values to clear CodeQL alerts on #320 - #327

Merged
esokullu merged 1 commit into
codex/report-driven-adapter-workflowsfrom
cursor/codeql-ax-value-escape-8d73
Aug 29, 2026
Merged

Escape AX inventory values to clear CodeQL alerts on #320#327
esokullu merged 1 commit into
codex/report-driven-adapter-workflowsfrom
cursor/codeql-ax-value-escape-8d73

Conversation

@esokullu

@esokullu esokullu commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Fixes the two GitHub Advanced Security / CodeQL high alerts on #320:

Incomplete string escaping or encoding — This does not escape backslash characters in the input.

Where: src/chrome/src/content/accessibility-tree.js and the Firefox mirror, appendAxValue (input/textarea path).

What: value= tokens now always escape \ then ", matching the already-safe identity/innerText path. Inventory readback parses escaped quotes and restores the app-owned string so YouTube/form metadata verification still matches titles like Launch "Video" from C:\Temp.

Chrome/Firefox shared modules stay byte-identical. Stacked on codex/report-driven-adapter-workflows so #320 picks this up when merged.

Tests

node test/run.js: 2142 passed. The remaining failure is pre-existing on the #320 branch (adapter workflow jobs reach the executor...taskKey vs empty evidenceTaskKey) and is not caused by this escape fix.

Open in Web Open in Cursor 

CodeQL flagged incomplete sanitization because input/textarea values
escaped quotes without first escaping backslashes. Always escape \\
then " in value= tokens, and parse those escapes back so metadata
readback still sees the app-owned string.

Co-authored-by: Emre Sokullu <esokullu@gmail.com>
@esokullu
esokullu marked this pull request as ready for review August 29, 2026 17:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T17:55:50.316407Z 414ca27 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@esokullu
esokullu merged commit 03b4422 into codex/report-driven-adapter-workflows Aug 29, 2026
1 check passed
@esokullu
esokullu deleted the cursor/codeql-ax-value-escape-8d73 branch August 29, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants