[Security] Bump undici from 5.10.0 to 5.19.1
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()
andHeaders.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 theheaderValueNormalize()
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⚠ ️
- Regular Expression Denial of Service in Headers with CVE-2023-24807
- CRLF Injection in Nodejs ‘undici’ via host with CVE-2023-23936
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
- fix(fetch): raise AbortSignal max event listeners by
@KhafraDev
in nodejs/undici#1910- fix: content-disposition header parsing by
@climba03003
in nodejs/undici#1911- fix: remove test by
@KhafraDev
in nodejs/undici#1916- feat: add Headers.prototype.getSetCookie by
@KhafraDev
in nodejs/undici#1915- fix(headers): clone getSetCookie list & add getSetCookie type by
@KhafraDev
in nodejs/undici#1917- doc(mock): update out-of-date reply documentation by
@p9f
in nodejs/undici#1913- fix(types): add missing keepAlive params by
@SkeLLLa
in nodejs/undici#1918- Make the fetch() abort test pass locally, on Linux and Mac, Node 18/19. by
@mcollina
in nodejs/undici#1927New Contributors
@climba03003
made their first contribution in nodejs/undici#1911@p9f
made their first contribution in nodejs/undici#1913Full Changelog: https://github.com/nodejs/undici/compare/v5.18.0...v5.19.0
v5.18.0
What's Changed
- Add ability to set TCP keepalive by
@xconverge
in nodejs/undici#1904- use faster timers by
@ronag
in nodejs/undici#1908- fix: ensure header value is a string by
@ronag
in nodejs/undici#1899Full Changelog: https://github.com/nodejs/undici/compare/v5.17.1...v5.18.0
v5.17.1
What's Changed
- fix: bad buffer slice (https://github.com/nodejs/undici/commit/d2be675575512794dcd41b9683b209fc15368154)
Full Changelog: https://github.com/nodejs/undici/compare/v5.17.0...v5.17.1
v5.17.0
What's Changed
- fix(wpts): Blob is a global getter in >=v19.x.x by
@KhafraDev
in nodejs/undici#1880- doc: fix anchor links dispatcher.stream by
@RafaelGSS
in nodejs/undici#1881- wpt: make runner more resilient by
@KhafraDev
in nodejs/undici#1884- Make test pass in v19.x by
@mcollina
in nodejs/undici#1879- Correct the type of DispatchOptions["headers"] by
@pan93412
in nodejs/undici#1896- perf(content-type parser): faster string collector by
@KhafraDev
in nodejs/undici#1894- feat: expose content-type parser by
@KhafraDev
in nodejs/undici#1895- fix(types): Update DispatchOptions type for missing "blocking" by
@xconverge
in nodejs/undici#1889
... (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