Skip to content

[Security] Bump undici from 5.10.0 to 5.19.1

Dependabot requested to merge dependabot-npm_and_yarn-undici-5.19.1 into master

Bumps undici from 5.10.0 to 5.19.1. This update includes security fixes.

Vulnerabilities fixed

Regular Expression Denial of Service in Headers

Impact

The Headers.set() and Headers.append() methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the headerValueNormalize() utility function.

Patches

This vulnerability was patched in v5.19.1.

Workarounds

There is no workaround. Please update to an unaffected version.

References

Credits

Carter Snook reported this vulnerability.

Patched versions: 5.19.1 Affected versions: < 5.19.1

CRLF Injection in Nodejs ‘undici’ via host

Impact

undici library does not protect host HTTP header from CRLF injection vulnerabilities.

Patches

This issue was patched in Undici v5.19.1.

Workarounds

Sanitize the headers.host string before passing to undici.

References

Reported at https://hackerone.com/reports/1820955.

Credits

Thank you to Zhipeng Zhang (@​timon8) for reporting this vulnerability.

Patched versions: 5.19.1 Affected versions: >= 2.0.0, < 5.19.1

Release notes

Sourced from undici's releases.

v5.19.1

️ Security Release

This release is part of the Node.js security release train: https://nodejs.org/en/blog/vulnerability/february-2023-security-releases/

v5.19.0

What's Changed

New Contributors

Full Changelog: https://github.com/nodejs/undici/compare/v5.18.0...v5.19.0

v5.18.0

What's Changed

Full Changelog: https://github.com/nodejs/undici/compare/v5.17.1...v5.18.0

v5.17.1

What's Changed

Full Changelog: https://github.com/nodejs/undici/compare/v5.17.0...v5.17.1

v5.17.0

What's Changed

... (truncated)

Commits
  • 984d53b Bumped v5.19.1
  • 6c32c0f lint fixes
  • f2324e5 Merge pull request from GHSA-r6ch-mqf9-qc9w
  • a2eff05 Merge pull request from GHSA-5r9g-qh6m-jxff
  • f5c89e5 Bumped v5.19.0
  • f7c6c6a Make the fetch() abort test pass locally, on Linux and Mac, Node 18 and 19 (#...
  • aebb232 fix(types): add missing keepAlive params (#1918)
  • e155c6d doc(mock): update out-of-date reply documentation (#1913)
  • 87fa734 fix(headers): clone getSetCookie list & add getSetCookie type (#1917)
  • ba5ef44 feat: add Headers.prototype.getSetCookie (#1915)
  • Additional commits viewable in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports

Loading