Repository navigation
fix(deps): update form-data and body-parser for security advisories - #3436
Merged
Merged
Conversation
Update form-data from 4.0.5 to 4.0.6 for GHSA-hmw2-7cc7-3qxx and body-parser from 1.20.8 to 1.20.9 for GHSA-27r3-jxmh-p828. The form-data direct dependency is pinned to 4.0.6 and the resolution is raised to ^4.0.6 so every dependent resolves to one 4.x entry. A regression case covers header injection through field names and filenames.
Crypto2099
marked this pull request as ready for review
October 27, 2026 17:18
disassembler
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
form-datafrom 4.0.5 to 4.0.6 for GHSA-hmw2-7cc7-3qxx (CRLF injection through unescaped multipart field names and filenames, affects>= 4.0.0, < 4.0.6; Dependabot alert https://github.com/input-output-hk/daedalus/security/dependabot/512).form-datais a runtime dependency.Updates
body-parserfrom 1.20.8 to 1.20.9 for GHSA-27r3-jxmh-p828 (denial of service through trailing bytes after a compressed request body, patched in 1.20.9). It is reached throughexpressfrom@storybook/*andwebpack-dev-server, so it is a development dependency.package.jsonpins theform-datadependency to 4.0.6 and raises the**/**/form-dataresolution from the exact 4.0.5 to^4.0.6. The resolution is kept so that dependents asking for^3.0.0or^4.0.4are still forced onto 4.x.yarn.locknow has oneform-dataentry for all four descriptors (4.0.6, ^3.0.0, ^4.0.4 and ^4.0.6), and it resolves 4.0.6, outside the vulnerable range.yarn.lockresolvesbody-parser@~1.20.5to 1.20.9. Beyond the two packages, the lockfile moveshasownandmime-typesranges requested byform-data4.0.6 (both already resolved to the required versions).tests/common/unit/dependency-security.spec.tsgains a case that appends a field name and filename containing CR, LF and quotes and checks that no injected header line appears in the multipart body.Closes #3435