CVE-2023-45143
Security vulnerability in undici
How to Fix This Vulnerability
Upgrade to a fixed version
Remediation Steps
- 1Upgrade the package to version 5.26.2 or later
- 2Review and audit affected systems for potential exploitation
- 3Implement additional security controls if immediate patching is not possible
- 4Monitor for suspicious activity related to this vulnerability
Mitigation Strategies
- Immediate PatchingHigh
Apply security patches to version 5.26.2 immediately
- Network SegmentationMedium
Isolate affected systems from untrusted networks until patching is complete
- Monitoring and DetectionMedium
Implement enhanced monitoring for exploitation attempts and unusual behavior
Description
Undici is an HTTP/1.1 client written from scratch for Node.js. Prior to version 5.26.2, Undici already cleared Authorization headers on cross-origin redirects, but did not clear Cookie headers. By design, cookie headers are forbidden request headers, disallowing them to be set in RequestInit.headers in browser environments. Since undici handles headers more liberally than the spec, there was a disconnect from the assumptions the spec made, and undici's implementation of fetch. As such this may lead to accidental leakage of cookie to a third-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the third party site. This was patched in version 5.26.2. There are no known workarounds.
Undici is an HTTP/1.1 client written from scratch for Node.js. Prior to version 5.26.2, Undici already cleared Authorization headers on cross-origin redirects, but did not clear Cookie headers. By design, cookie headers are forbidden request headers, disallowing them to be set in RequestInit.headers in browser environments. Since undici handles headers more liberally than the spec, there was a disconnect from the assumptions the spec made, and undici's implementation of fetch. As such this may lead to accidental leakage of cookie to a third-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the third party site. This was patched in version 5.26.2. There are no known workarounds. This vulnerability involves weaknesses in
Impact Assessment
This low-severity vulnerability has limited impact but should still be addressed as part of regular security maintenance.
Attack Characteristics
- Attack Vector
- NETWORK
- Complexity
- HIGH
- Privileges Required
- HIGH
- User Interaction
- REQUIRED
CVSS v3.1 Metrics Breakdown
- attack Vector
- NETWORK
- attack Complexity
- HIGH
- privileges Required
- HIGH
- user Interaction
- REQUIRED
- scope
- Unchanged
- confidentiality Impact
- Medium
- integrity Impact
- Medium
- availability Impact
- Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:LVulnerability Timeline
- 2023-10-12T17:15:10.087Vulnerability publishedpublished
- 2023-10-12T17:15:10.087Patches released: 5.26.2patched