CVE-2022-31151
This may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site.
Does this matter?
Lower severity and a low EPSS score (0.70%). Track it; it rarely justifies an emergency change on its own.
Description
Authorization headers are cleared on cross-origin redirect. However, cookie headers which are sensitive headers and are official headers found in the spec, remain uncleared. There are active users using cookie headers in undici. This may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site. This was patched in v5.7.1. By default, this vulnerability is not exploitable. Do not enable redirections, i.e. `maxRedirections: 0` (the default).
- CVSS 3.1
- 6.5 MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS
- 0.70% probability · 51th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-601, CWE-346
- Affected
- nodejs/undici
- Source
- security-advisories@github.com
References
- https://github.com/nodejs/undici/issues/872Exploit, Issue Tracking, Third Party Advisory
- https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qpThird Party Advisory
- https://hackerone.com/reports/1635514Permissions Required, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220909-0006/Third Party Advisory
- https://github.com/nodejs/undici/issues/872Exploit, Issue Tracking, Third Party Advisory
- https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qpThird Party Advisory
- https://hackerone.com/reports/1635514Permissions Required, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220909-0006/Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.