Skip to content

Fix compressed JSON parsing and validation dependency advisories - #47

Merged
sidhujag merged 1 commit into
mainfrom
codex/fix-parser-validation-dependencies
Oct 25, 2026
Merged

sidhujag merged 1 commit into
mainfrom
codex/fix-parser-validation-dependencies

Conversation

@sidhujag

Copy link
Copy Markdown
Member

The production dependency audit currently blocks deployment because both JSON-parser paths and Zod resolve to vulnerable versions. Pin body-parser to 2.4.0 and Zod to 4.6.7, and refresh Express's compatible nested body-parser to 1.20.9. Express stays on 4.22.1; there is no framework-major upgrade or application/database change.

The parser updates fix the unauthenticated compressed-body crash described in GHSA-27r3-jxmh-p828. Zod includes the constrained-collection validation fix in GHSA-mrhx-c7xc-m3w5. The added regressions send bounded gzip/deflate trailing-byte payloads through the real auth router with both the production parser composition and standalone app parser, then verify the process still handles a new request. Subprocess isolation prevents a future regression from crashing the test runner. A small Zod case verifies size rejection precedes element validation.

Validation on Node 22.23.4:

  • npm ci passed using npm 10.
  • Full Jest suite: 1,465 tests passed across 72 suites.
  • Sentry codec integrations: 12 tests passed.
  • npm audit --omit=dev --audit-level=high passed: 0 high, 0 critical; 4 low and 5 moderate findings remain outside this focused patch.
  • git diff --check passed.

The audit threshold, deployment workflow, and snapshot-feature PR are unchanged. No deployment has been performed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-10-25T05:47:16.340474Z b23e86e PR opened
🔒 Security Review ✅ Completed 2026-10-25T05:48:21.925651Z b23e86e PR opened
ℹ️ 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.

@sidhujag
sidhujag merged commit bc4c5d8 into main Oct 25, 2026
12 checks passed
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.

1 participant