CVE-2022-31151
Last modified
CVE-2022-31151 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.58% chance of exploitation in the next 30 days.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nodejs | Undici | < 5.7.1 |
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
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-31151?
How severe is CVE-2022-31151?
How do I fix CVE-2022-31151?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-31146Wasmtime is a standalone runtime for WebAssembly. There is a…8.8
- CVE-2022-31147The jQuery Validation Plugin (jquery-validation) provides dr…7.5
- CVE-2022-31148Shopware is an open source e-commerce software. In versions …5.4
- CVE-2022-31149ActivityWatch open-source automated time tracker. Versions p…9.6
- CVE-2022-3115An issue was discovered in the Linux kernel through 5.16-rc6…5.5
- CVE-2022-31150undici is an HTTP/1.1 client, written from scratch for Node.…6.5
- CVE-2022-31152Synapse is an open-source Matrix homeserver written and main…7.5
- CVE-2022-31153OpenZeppelin Contracts for Cairo is a library for contract d…6.5
- CVE-2022-31154Sourcegraph is an opensource code search and navigation engi…4.3
- CVE-2022-31155Sourcegraph is an opensource code search and navigation engi…4.3
- CVE-2022-31156Gradle is a build tool. Dependency verification is a securit…4.4
- CVE-2022-31157LTI 1.3 Tool Library is a library used for building IMS-cert…7.5
Are you affected by CVE-2022-31151?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
