Repository navigation
security(pm-aggregator): escape the page path in error-boundary 404 (#10865) - #10866
Conversation
…10865) notFoundResponse interpolated the raw page path into its HTML 404 - the #2267 reflected-XSS class PR #4419 documented as left open in error-boundary.ts. Escape via the render esc helper in the HTML branch only; the JSON branch is unchanged. Adds a metacharacter regression test proving the path returns as inert escaped text with no executable element.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Codex disposition (task 17548, lane any-b): the Codex review run on fbdd514 FAILED on Codex usage limits ("You have reached your Codex usage limits for code reviews") and produced zero inline findings (pull request review comments: none). There is no finding to fix or rebut; the failure is the review service's quota, not the change. Same disposition as PRs #10847/#10857/#10860. Merging on the strength of the targeted tests recorded in the PR body. |
Closes #10865.
What
notFoundResponse in pm-stack/aggregator/src/error-boundary.ts interpolated the raw page path into its HTML 404 — the #2267 reflected-XSS class that PR #4419 fixed in server.ts and explicitly documented as left open here. The HTML branch now escapes the path via the renderer's esc helper; the JSON branch is unchanged (pinned by test).
Tests
Queue: task 17548, lane any-b.