Undici's cookie header not cleared on cross-origin redirect in fetch
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| nodejs | undici | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | |||
| nodejs:18-8080020231015215042.63b34585 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2023:5869 | 2023-10-18T00:00:00Z |
| nodejs:20-8090020231019152822.a75119d5 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2023:7205 | 2023-11-14T00:00:00Z |
| Red Hat Enterprise Linux 9 | |||
| nodejs:18-9020020231015221156.rhel9 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2023:5849 | 2023-10-18T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2023-2832 | 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. |
Github GHSA |
GHSA-wqq4-5wpv-mx2g | Undici's cookie header not cleared on cross-origin redirect in fetch |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 1.4% (1.368% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
epss
|
epss
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|