Skip to content

Bump undici from 5.28.4 to 6.24.0#711

Open
everettbu wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/undici-6.24.0
Open

Bump undici from 5.28.4 to 6.24.0#711
everettbu wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/undici-6.24.0

Conversation

@everettbu
Copy link
Copy Markdown

Mirror of facebook/react#36037
Original author: app/dependabot


Bumps undici from 5.28.4 to 6.24.0.

Release notes

Sourced from undici's releases.

v6.24.0

Undici v6.24.0 Security Release Notes (LTS)

This release backports fixes for security vulnerabilities affecting the v6 line.

Upgrade guidance

All users on v6 should upgrade to v6.24.0 or later.

Fixed advisories

Not applicable to v6

Affected and patched ranges (v6)

References

v6.23.0

⚠️ Security Release

... (truncated)

Commits
  • 8873c94 Bumped v6.24.0
  • 411bd01 test(websocket): use node:assert for Node 18 compatibility
  • 844bf59 test: fix http2 lint regressions in backport
  • a444e4f test: stabilize h2 and tls-cert-leak under current test runner
  • dc032a1 fix: h2 CI (#4395)
  • 4cd3f4b test: increase bitness in test/fixtures/*.pem (#3659)
  • 7df6442 fix: adapt websocket frame-limit handling for v6 parser
  • 4e0179a fix: reject duplicate content-length and host headers
  • 5a97f08 Fix websocket 64-bit length overflow
  • e43e898 fix: validate upgrade header to prevent CRLF injection
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for undici since your current version.

Install script changes

This version modifies prepare script that runs during installation. Review the package contents before updating.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • ``@dependabot rebase will rebase this PR
  • ``@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • ``@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • ``@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • ``@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • ``@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [undici](https://github.com/nodejs/undici) from 5.28.4 to 6.24.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.28.4...v6.24.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.24.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@everettbu everettbu added CLA Signed dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 13, 2026
@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Mar 13, 2026

Greptile Summary

This PR bumps undici from v5.28.4 to v6.24.0 (a major version upgrade) in the root package.json devDependencies, patching 5 security vulnerabilities including 3 High-severity CVEs (CVE-2026-1528, CVE-2026-2229, CVE-2026-1526) related to WebSocket frame handling and 2 Medium-severity CVEs (CVE-2026-1525, CVE-2026-1527) related to HTTP request smuggling and CRLF injection.

Key observations:

  • undici is used exclusively as a devDependency — it polyfills File, FormData, fetch, and Request for test environments and flight fixture servers. All of these APIs remain exported in undici v6, so no callsite changes are required.
  • The @fastify/busboy transitive dependency (previously required by undici v5) is correctly removed from yarn.lock, as undici v6 no longer depends on it.
  • The fixture packages at fixtures/flight/package.json and fixtures/flight-esm/package.json still declare "undici": "^5.20.0" in their own dependency trees. Those fixtures continue to carry the patched vulnerabilities and may warrant follow-up PRs to bring them in line with this security fix.
  • The PR description notes that undici v6's prepare install script has changed. This is undici's build-time script and does not introduce a supply chain risk for consumers, but it is worth verifying on a clean yarn install if CI hasn't already done so.

Confidence Score: 4/5

  • This PR is safe to merge; it is a well-scoped security patch to a devDependency with no API breakage in the consuming code.
  • Score is 4 rather than 5 because the fixture packages (fixtures/flight and fixtures/flight-esm) still pin undici v5 in their own package.json files and are not covered by this upgrade, leaving residual CVE exposure in those subtrees. All other aspects of the change are correct: the lock file is consistent, the removed transitive dependency (@fastify/busboy) is accounted for, and all imported undici APIs (File, FormData, fetch, Request) are preserved in v6.
  • fixtures/flight/package.json and fixtures/flight-esm/package.json still reference undici@^5.20.0 and are not covered by this security bump.

Important Files Changed

Filename Overview
package.json Bumps undici devDependency from ^5.28.4 to ^6.24.0 to address 5 CVEs (including 3 High severity). Change is scoped to devDependencies only and doesn't affect published packages.
yarn.lock Lock file correctly updated: removes the @fastify/busboy@^2.0.0 entry (a now-dropped transitive dependency of undici v5) and updates the undici entry to v6.24.0 with the correct resolved URL and integrity hash.

Last reviewed commit: 31b271b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant