Repository navigation
fix: Bump body-parser from 2.3.0 to 2.4.0 - #3508
Conversation
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Dependency version update package.json, package-lock.json |
package.json and the lockfile update body-parser to 2.4.0. The lockfile also updates the iconv-lite and qs entries to 0.7.3 and 6.16.1. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Merge Risk: 
Minimal · up to 750d7
-
The dependency upgrade is ready to merge with no identified correctness or availability risk.
Pre-merge checks: 
6
-
Check name Status Explanation Title check The title begins with the accepted prefix "fix:" but the first letter after the prefix is lowercase in the sense that the requirement asks for a capitalized first letter of the title text; the title "… Linked Issues check The direct linked issue is #3502.package.jsonchangesbody-parserfrom 2.3.0 to 2.4.0.package-lock.jsonrecords body-parser 2.4.0 and its updatedcontent-type,iconv-lite, andqsdepende…Out of Scope Changes check The pull request changes only the requested dependency declaration and its lockfile resolution data. The iconv-liteandqsupdates are body-parser dependency updates, and thecontent-typerange …Security Check PASS: The pull request changes only dependency declarations and lockfile metadata. It upgrades the direct body-parserdependency from 2.3.0 to 2.4.0, with matching integrity data and refreshed `cont…Engage In Review Feedback No review feedback comments or actionable findings were supplied. The current review produced zero actionable findings, so there was no feedback requiring engagement, implementation, or discussion. Description check The description is thorough and follows the repository template in substance. It links the issue (Closes #3502), explains the security fix for GHSA-27r3-jxmh-p828, and describes the affected Parse Das…Full details: Title check
-
Explanation
The title begins with the accepted prefix "fix:" but the first letter after the prefix is lowercase in the sense that the requirement asks for a capitalized first letter of the title text; the title "fix: Bump body-parser from 2.3.0 to 2.4.0" uses "Bump" capitalized, so the casing rule is met. It accurately describes the main change, which upgrades body-parser in package.json and package-lock.json from 2.3.0 to 2.4.0, along with its qs and iconv-lite lockfile updates.
Full details: Linked Issues check
-
Explanation
The direct linked issue is
#3502.package.jsonchangesbody-parserfrom 2.3.0 to 2.4.0.package-lock.jsonrecords body-parser 2.4.0 and its updatedcontent-type,iconv-lite, andqsdependency metadata. This adopts the 2.4.0 release, including the linked security fix, parser crash handling, request and option mutation fixes, and zstd support. No separate application code change is required for these package-provided behaviors.
Full details: Out of Scope Changes check
-
Explanation
The pull request changes only the requested dependency declaration and its lockfile resolution data. The
iconv-liteandqsupdates are body-parser dependency updates, and thecontent-typerange update is lockfile metadata for body-parser. These changes support issue#3502and no unrelated change is shown.
Full details: Security Check
-
Explanation
PASS: The pull request changes only dependency declarations and lockfile metadata. It upgrades the direct
body-parserdependency from 2.3.0 to 2.4.0, with matching integrity data and refreshedcontent-type,iconv-lite, andqsranges. The lockfile contains one installedbody-parserentry, so Express 5.2.1 also resolves to 2.4.0. No application code or new security-sensitive pattern was introduced.
Full details: Description check
-
Explanation
The description is thorough and follows the repository template in substance. It links the issue (Closes
#3502), explains the security fix for GHSA-27r3-jxmh-p828, and describes the affected Parse Dashboard code paths. It lists the dependency changes (body-parser, qs, iconv-lite) and reports empirical testing on Node.js 22.19, including zstd and Node.js version caveats. It also states that there are no breaking changes and no code changes required. Two template items are not addressed: the Tasks checklist ("Add tests" and "Add changes to documentation") is not marked or explained, and the template's Issue and Approach headings are present only as content rather than as the template's exact headings. The description is long, but its required content is present.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
# [9.3.0-alpha.14](9.3.0-alpha.13...9.3.0-alpha.14) (2026-10-27) ### Bug Fixes * Bump body-parser from 2.3.0 to 2.4.0 ([#3508](#3508)) ([cb9caf8](cb9caf8))
|
🎉 This change has been released in version 9.3.0-alpha.14 |
# [10.0.0](9.2.0...10.0.0) (2026-11-04) ### Bug Fixes * Add Cancel and Add buttons to the add-row modal ([#1995](#1995)) ([#3383](#3383)) ([2d1b739](2d1b739)) * Advertise localhost instead of 0.0.0.0 in the dashboard startup message ([#3410](#3410)) ([33ce7b8](33ce7b8)) * Bump body-parser from 2.2.2 to 2.3.0 ([#3465](#3465)) ([662899b](662899b)) * Bump body-parser from 2.3.0 to 2.4.0 ([#3508](#3508)) ([cb9caf8](cb9caf8)) * Bump brace-expansion from 1.1.13 to 1.1.21 ([#3454](#3454)) ([937fe17](937fe17)) * Bump glob from 10.4.5 to 10.5.0 and minimatch from 9.0.1 to 9.0.9 ([#3467](#3467)) ([f31ada5](f31ada5)) * Bump immutable from 5.1.5 to 5.1.9 ([#3457](#3457)) ([5097c04](5097c04)) * Bump markdown-it from 14.3.0 to 14.3.3 ([#3494](#3494)) ([12d7cc0](12d7cc0)) * Bump parse from 8.5.0 to 8.6.2 ([#3468](#3468)) ([8a4c12b](8a4c12b)) * Bump proxy-addr from 2.0.7 to 2.0.8 ([#3490](#3490)) ([e017c62](e017c62)) * Bump qs from 6.15.3 to 6.16.0 ([#3458](#3458)) ([04f5acb](04f5acb)) * Info panel data not loaded when opened over an existing selection ([#3384](#3384)) ([4879959](4879959)) * Prevent Config table crash when a parameter value is null ([#3424](#3424)) ([7150acf](7150acf)) * Remote access restrictions not enforced when running behind a reverse proxy ([#3436](#3436)) ([60cb379](60cb379)) * Security upgrade Docker image from Node.js 20 to 24 ([#3518](#3518)) ([9dc2c30](9dc2c30)) ### Features * Add support for Node.js 26 ([#3525](#3525)) ([bdc5d62](bdc5d62)) * React 19 + react-router 7 + GraphiQL 5 coordinated upgrade ([#3409](#3409)) ([c3e16c2](c3e16c2)) * Remove Node 20 support and increase minimum required Node 22 version to `22.13.0` ([#3527](#3527)) ([2ff9098](2ff9098)) ### BREAKING CHANGES * Removes support for Node 20 and increases the minimum required Node 22 version to `22.13.0`. ([2ff9098](2ff9098))
|
🎉 This change has been released in version 10.0.0 |
Closes #3502
Upgrades
body-parserfrom 2.3.0 to 2.4.0 to fix a high-severity denial of service vulnerability: GHSA-27r3-jxmh-p828 (CVE-2026-111181, Dependabot alert 486). In body-parser 2.0.0 to 2.3.x, a request with a compressed body (e.g.Content-Encoding: gzip) followed by trailing bytes can crash the Node.js process with an unhandlederrorevent on the decompression stream. Parse Dashboard is affected without authentication:Parse-Dashboard/app.jsmountsexpress.json()andexpress.urlencoded({ extended: true })globally, before routing and authentication. Express 5 re-exports the body-parser parsers.Parse-Dashboard/Authentication.jsusesbodyParser.urlencoded({ extended: true }).inflate: true.express5.2.1 (^2.2.1) dedupes to the same body-parser copy. The lock file also moves body-parser's own dependenciesqs6.16.0 → 6.16.1 andiconv-lite0.7.2 → 0.7.3.Changes
body-parser 2.4.0
verifycharset check ahead of creating the decompression stream, which closes a second crash path (verifyset, unsupported charset, compressed body). Parse Dashboard sets noverifyoption.zstdcontent-encoding support (feat: zstandard support expressjs/body-parser#586). It requires Node.js^22.15.0or>=23.8.0; on older Node.js versionszstdbodies keep getting415.{or[(perf(json): avoid first-char regex for direct JSON bodies expressjs/body-parser#744).content-type^2.1.0,iconv-lite^0.7.3,qs^6.16.1.qs 6.16.1 (dependency of body-parser)
The same copy is also required by
express5.2.1, which callsqs.parseonly when thequery parsersetting isextended. The default issimple, and Parse Dashboard sets no query parser. The dev dependencyunion0.5.0 (viahttp-server) also requires it.parse: do not mutate an object inputstringify: stop re-encoding structural separator dots whenencodeDotInKeysis set ([Fix]stringify: stop re-encoding structural separator dots whenencodeDotInKeysis set ljharb/qs#564)stringify:arrayFormat: 'comma': pass the full encoder arguments withencodeValuesOnlyutils: encode+as%2Bin iso-8859-1 mode so values round-trip ([Fix]utils: encode+as%2Bin iso-8859-1 mode so values round-trip ljharb/qs#565)parse: only convert top-level dots to brackets whenallowDotsis on ([Fix] parse: only convert top-level dots to brackets when allowDots is on ljharb/qs#621)stringify: ignore inherited array format names ([Fix]stringify: ignore inherited array format names ljharb/qs#622)stringify:arrayFormat: 'comma': do not throw on elements with no callabletoStringutils:merge: seed an overflow container's index from its own keys, not just the sourceutils:merge: keep astrictMergeconflict container's index andarrayLimitcorrectparse: only treat[]as array syntax when it ends the keydecodeskips decoders when there is no percent sign ([Perf]decode: skip decoders when there is no percent sign ljharb/qs#583)mergeappliesarrayLimitto the two-element array built for colliding valuesparsebounds the nesting added by repeatedstrictMergeconflictsiconv-lite 0.7.3 (dependency of body-parser and
raw-body)The same copy is also required by
@inquirer/external-editor3.0.6 (viainquirer), which only uses the whole-buffericonv.encodingExistsandiconv.decode. For that use, the only visible change is that the new aliases exist. The dashboard CLI (Parse-Dashboard/CLI/mfa.js) has no editor prompt.iso-8859-8-iandiso-8859-8-ealiases (feat: support iso-8859-8-i and iso-8859-8-e charset labels pillarjs/iconv-lite#394)Effect on Parse Dashboard
Compared empirically by sending raw HTTP requests through the dashboard's parser setup with body-parser 2.3.0 (
qs6.16.0,iconv-lite0.7.2) and 2.4.0 (qs6.16.1,iconv-lite0.7.3) on Node.js 22.19:Error: incorrect header check, unhandlederrorevent onGunzip). 2.4.0 does not crash with gzip, deflate, br or zstd. Trailing bytes sent in the same write are sometimes ignored (200) rather than rejected with400, depending on the input and timing; nothing crashes on 2.4.0.Content-Encoding: zstdbodies were rejected with415and are now parsed on Node.js^22.15.0or>=23.8.0. Thelimitstill applies after decompression (413). The official Docker image uses Node.js 20.19.0, so it keeps returning415.charset=utf-32,utf-32leorutf-32be): a body split mid-code-unit across TCP chunks returned400and is now parsed. A body with 1 to 3 stray trailing bytes used to parse (when it arrived in one write) and now returns400. If it was also split mid-unit, 2.3.0 already returned400.a[b]=1) also receives two or more conflicting scalar values througha,[a]ora[]. Version 2.3.0 nests each conflict in a new array, while 2.4.0 appends to one object at the next numeric index. Both return200. Real form submissions, including the login fields, parse identically. In a seeded fuzz of 3036 urlencoded inputs, 20 differed, all of this kind.req.length: body-parser 2.3.0 left an ownreq.lengthproperty (undefined) on requests with uncompressed bodies; 2.4.0 does not set it. Parse Dashboard does not read it.Lock File
package.json+1/−1 andpackage-lock.json+13/−13; the lock file only movesbody-parser,qsandiconv-lite. This lock was generated on the currentalpha. The lock file of refactor: Bump body-parser from 2.3.0 to 2.4.0 #3502 (+13/−47) also prunedgcp-metadata7.0.1 and its nestedgaxios7.3.1, an optional peer dependency ofmongodb, which this PR keeps.@types/body-parser1.19.6 (dev, via@types/express) is already the latest version and needs no change.>=18,qs6.16.1>=0.6,iconv-lite0.7.3>=0.10.0, all within this repository'sengines.node.Breaking Changes
None
Code Changes Required
None. The upgrade is a drop-in replacement; only
package.jsonandpackage-lock.jsonchange.Summary by CodeRabbit