Skip to content

Update body-parser to fix compressed request denial of service - #6083

Merged
knolleary merged 2 commits into
node-red:mainfrom
bitshape:codex/body-parser-security-update
Nov 13, 2026
Merged

knolleary merged 2 commits into
node-red:mainfrom
bitshape:codex/body-parser-security-update

Conversation

@bitshape

Copy link
Copy Markdown
Contributor
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

Update the pinned body-parser dependency from 1.20.8 to 1.20.9 in the root package, editor API and core nodes. This fixes CVE-2026-111181 / GHSA-27r3-jxmh-p828, where trailing bytes after a compressed request body can cause an uncaught decompressor error and terminate the process.

Both the editor API and HTTP In nodes enable body inflation through the parser's default options. The patch keeps the existing body-parser 1.x API and leaves parser configuration unchanged. All three pins are updated together to satisfy the repository dependency consistency check.

Validation

  • Local loopback reproductions adapted from the dependency's regression cases: gzip trailing bytes and rejected-charset cases terminate the process with 1.20.8 (Z_DATA_ERROR, exit 1); both pass with 1.20.9. The delayed deflate case also passes after the update.
  • npm test: build, dependency consistency and lint pass; 3,115 tests pass, 58 are pending, and one filesystem-watch test fails (should watch a sub directory in a directory to be changed). The same watch test fails with the original body-parser 1.20.8 as well (4 passing / 1 failing, followed by an ENOENT from its delayed callback).
  • Focused editor API and HTTP request suite: 348 passing, 3 pending.
  • Runtime: Node.js 26.5.0 on macOS ARM64.
  • npm ls body-parser --all: all installed copies resolve to 1.20.9.

Checklist

  • I have read the contribution guidelines.
  • For non-bugfix PRs, I have discussed this change on the forum/slack team. (Not applicable.)
  • I have run npm run test to verify the unit tests pass. (Run; one pre-existing local filesystem-watch failure, detailed above.)
  • I have added suitable unit tests to cover the new/changed functionality. (Dependency-only update; the dependency already includes the regression tests. Local reproductions were run separately.)

This patch and PR description were prepared with OpenAI Codex. Codex identified the dependency update, made the three manifest changes, ran the local regression checks and test suites, and analyzed the results reported above.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@knolleary

Copy link
Copy Markdown
Member

Thanks for this @bitshape

Both this and the npm update were scheduled for the next maintenance release coming in the next few days.

Are you able to sign the CLA so we can accept your contributions? If not, we'll be updating these dependencies ourselves.

@bitshape

Copy link
Copy Markdown
Contributor Author

@knolleary CLA signed

@knolleary
knolleary merged commit 50b23f8 into node-red:main Nov 13, 2026
3 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.

2 participants