CVE-2022-31151
Summary
| CVE | CVE-2022-31151 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-07-21 04:15:00 UTC |
| Updated | 2022-09-29 15:40:00 UTC |
| 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). |
Risk And Classification
Problem Types: CWE-601
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Cookies uncleared on cross-host / cross-origin redirect · Advisory · nodejs/undici · GitHub | CONFIRM | github.com | |
| HackerOne | MISC | hackerone.com | |
| `authorization` header is not deleted on redirects to third party origins · Issue #872 · nodejs/undici · GitHub | MISC | github.com | |
| CVE-2022-31151 Node.js Vulnerability in NetApp Products | NetApp Product Security | CONFIRM | security.netapp.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 184582 Debian Security Update for node-undici (CVE-2022-31151)