CVE-2024-24758: Undici Undici Proxy-authorization Header Not Cleared Vulnerability
LOWCVE-2024-24758 is a LOW (CVSS 3.9) undici proxy-authorization header not cleared vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Undici libraries in the npm ecosystem. The issue involves undici proxy-authorization header not cleared on cross-origin redirect in fetch. Remediation is available by upgrading affected packages to version 5.28.3, 6.6.1.
CVE-2024-24758 at a Glance
Security Impact
CVSS: 3.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-24758
To remediate this vulnerability, upgrade all affected Undici dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install undici@5.28.3
npm install undici@6.6.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls undici
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-24758, inspect your project dependencies using npm:
npm ls undici
Analyze the terminal output to locate any version of Undici in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.28.3), your application is affected.
Note: The npm ls undici command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Undici, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-24758 Affected Undici Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
undici
|
npm |
< 5.28.3
|
5.28.3
|
|
undici
|
npm |
≥ 6.0.0
< 6.6.1
|
6.6.1
|
References
Frequently Asked Questions
What is CVE-2024-24758?
Which Undici versions are affected?
What version fixes CVE-2024-24758?
Is undici affected?
What is the CVSS score of CVE-2024-24758?
What CWE is associated with CVE-2024-24758?
How can I check npm dependencies for CVE-2024-24758?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3787-6prv-h9w3",
"modified" : "2024-05-02T13:15:07Z",
"published" : "2024-02-16T16:02:52Z",
"aliases" : [ "CVE-2024-24758" ],
"summary" : "Undici proxy-authorization header not cleared on cross-origin redirect in fetch",
"details" : "### Impact\n\nUndici already cleared Authorization headers on cross-origin redirects, but did not clear `Proxy-Authorization` headers. \n\n### Patches\n\nThis is patched in v5.28.3 and v6.6.1\n\n### Workarounds\n\nThere are no known workarounds.\n\n### References\n\n- https://fetch.spec.whatwg.org/#authentication-entries\n- https://github.com/nodejs/undici/security/advisories/GHSA-wqq4-5wpv-mx2g",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "undici"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.28.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.28.2"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "undici"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.6.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.6.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/nodejs/undici/security/advisories/GHSA-3787-6prv-h9w3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24758"
}, {
"type" : "WEB",
"url" : "https://github.com/nodejs/undici/commit/b9da3e40f1f096a06b4caedbb27c2568730434ef"
}, {
"type" : "WEB",
"url" : "https://github.com/nodejs/undici/commit/d3aa574b1259c1d8d329a0f0f495ee82882b1458"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nodejs/undici"
}, {
"type" : "WEB",
"url" : "https://github.com/nodejs/undici/releases/tag/v5.28.3"
}, {
"type" : "WEB",
"url" : "https://github.com/nodejs/undici/releases/tag/v6.6.1"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240419-0007"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/03/11/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-16T16:02:52Z",
"nvd_published_at" : "2024-02-16T22:15:08Z"
}
}