CVE-2022-31151 Details
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).
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nodejs/undici/issues/872 | CVE | ExploitIssue TrackingThird Party Advisory |
| https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp | CVE | Third Party Advisory |
| https://hackerone.com/reports/1635514 | CVE | Permissions RequiredThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220909-0006/ | CVE | Third Party Advisory |
| https://github.com/nodejs/undici/issues/872 | [email protected] | ExploitIssue TrackingThird Party Advisory |
| https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp | [email protected] | Third Party Advisory |
| https://hackerone.com/reports/1635514 | [email protected] | Permissions RequiredThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220909-0006/ | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-346 | Origin Validation Error | [email protected] |
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nodejs undici | < 5.7.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 29, 2022 | Modified Analysis | [email protected] |
| Sep 9, 2022 | CVE Modified | [email protected] |
| Aug 1, 2022 | Initial Analysis | [email protected] |