{"api_version":"1","generated_at":"2026-04-23T01:15:12+00:00","cve":"CVE-2022-31151","urls":{"html":"https://cve.report/CVE-2022-31151","api":"https://cve.report/api/cve/CVE-2022-31151.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31151","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31151"},"summary":{"title":"CVE-2022-31151","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).","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-07-21 04:15:00","updated_at":"2022-09-29 15:40:00"},"problem_types":["CWE-601"],"metrics":[],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp","name":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp","refsource":"CONFIRM","tags":[],"title":"Cookies uncleared on cross-host / cross-origin redirect · Advisory · nodejs/undici · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://hackerone.com/reports/1635514","name":"https://hackerone.com/reports/1635514","refsource":"MISC","tags":[],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/nodejs/undici/issues/872","name":"https://github.com/nodejs/undici/issues/872","refsource":"MISC","tags":[],"title":"`authorization` header is not deleted on redirects to third party origins · Issue #872 · nodejs/undici · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20220909-0006/","name":"https://security.netapp.com/advisory/ntap-20220909-0006/","refsource":"CONFIRM","tags":[],"title":"CVE-2022-31151 Node.js Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31151","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31151","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"31151","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nodejs","cpe5":"undici","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-31151","qid":"184582","title":"Debian Security Update for node-undici (CVE-2022-31151)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-31151","STATE":"PUBLIC","TITLE":"Uncleared cookies on cross-host/cross-origin redirect in undici"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"undici","version":{"version_data":[{"version_value":"< 5.7.1"}]}}]},"vendor_name":"nodejs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-601: URL Redirection to Untrusted Site ('Open Redirect')"}]}]},"references":{"reference_data":[{"name":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp","refsource":"CONFIRM","url":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp"},{"name":"https://github.com/nodejs/undici/issues/872","refsource":"MISC","url":"https://github.com/nodejs/undici/issues/872"},{"name":"https://hackerone.com/reports/1635514","refsource":"MISC","url":"https://hackerone.com/reports/1635514"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20220909-0006/","url":"https://security.netapp.com/advisory/ntap-20220909-0006/"}]},"source":{"advisory":"GHSA-q768-x9m6-m9qp","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-07-21 04:15:00","lastModifiedDate":"2022-09-29 15:40:00","problem_types":["CWE-601"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":2.5}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*","versionEndExcluding":"5.7.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}