CVE-2024-24758: Proxy-Authorization header not cleared on cross-origin redirect in fetch in Undici
Impact
Undici already cleared Authorization headers on cross-origin redirects, but did not clear Proxy-Authorization headers.
Patches
This is patched in v5.28.3 and v6.6.1
Workarounds
There are no known workarounds.
References
- https://fetch.spec.whatwg.org/#authentication-entries - https://github.com/nodejs/undici/security/advisories/GHSA-wqq4-5wpv-mx2g
Other sources
Undici is an HTTP/1.1 client, written from scratch for Node.js. Undici already cleared Authorization headers on cross-origin redirects, but did not clear Proxy-Authentication headers. This issue has been patched in versions 5.28.3 and 6.6.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/undicito a version that resolves this vulnerability.Fixed in 6.6.1 - Upgrade
Upgrade
npm/undicito a version that resolves this vulnerability.Fixed in 5.28.3 - Upgrade
Upgrade
undicito a version that resolves this vulnerability.Fixed in 5.28.3Patch GHSA-wqq4-5wpv-mx2g - Upgrade
Upgrade
undicito a version that resolves this vulnerability.Fixed in 6.6.1Patch GHSA-wqq4-5wpv-mx2g
Event History
Frequently Asked Questions
What is the severity of CVE-2024-24758?
CVE-2024-24758 is considered to have a high severity level due to the risk of unauthorized access through unhandled Proxy-Authorization headers.
How do I fix CVE-2024-24758?
To fix CVE-2024-24758, upgrade to undici version 5.28.3 or 6.6.1.
What does CVE-2024-24758 affect?
CVE-2024-24758 affects the undici package in certain versions, specifically those below 5.28.3 and 6.6.1.
Are there any workarounds for CVE-2024-24758?
There are no known workarounds for CVE-2024-24758, making the upgrade essential for mitigation.
How does CVE-2024-24758 impact my application?
CVE-2024-24758 can lead to unauthorized access if your application improperly handles Proxy-Authorization headers in cross-origin requests.