{"id":"CVE-2022-31151","aliases":["DEBIAN-CVE-2022-31151","GHSA-q768-x9m6-m9qp","UBUNTU-CVE-2022-31151"],"summary":"Uncleared cookies on cross-host/cross-origin redirect in undici","published_at":"2022-07-20T23:00:15Z","modified_at":"2026-11-18T06:02:23.022108Z","products":[],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"SUSE","rating":"low"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0073899999260902405,"percentile":0.553380012512207,"date":"2026-11-19T00:00:00Z"},"priority":8.5,"details":"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).","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"nodejs/undici","versions":["< 5.7.1"],"provider":"cvelistv5","source":"CVE-2022-31151","relation":"self"},{"ecosystem":"Debian:12","package":"node-undici","purl":"pkg:deb/debian/node-undici?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.0+dfsg1+~cs18.9.16-1"}]}],"fixed":["5.8.0+dfsg1+~cs18.9.16-1"],"provider":"osv","source":"DEBIAN-CVE-2022-31151","relation":"self"},{"ecosystem":"Debian:13","package":"node-undici","purl":"pkg:deb/debian/node-undici?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.0+dfsg1+~cs18.9.16-1"}]}],"fixed":["5.8.0+dfsg1+~cs18.9.16-1"],"provider":"osv","source":"DEBIAN-CVE-2022-31151","relation":"self"},{"ecosystem":"Debian:14","package":"node-undici","purl":"pkg:deb/debian/node-undici?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.0+dfsg1+~cs18.9.16-1"}]}],"fixed":["5.8.0+dfsg1+~cs18.9.16-1"],"provider":"osv","source":"DEBIAN-CVE-2022-31151","relation":"self"},{"ecosystem":"NVD","package":"nodejs:undici","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.1"}]}],"fixed":["5.7.1"],"provider":"nvd","source":"CVE-2022-31151","relation":"self"},{"ecosystem":"TuxCare:npm","package":"undici","purl":"pkg:npm/undici","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.5.1-tuxcare.0"},{"fixed":"5.5.1-tuxcare.1"}]}],"versions":["5.5.1"],"fixed":["5.5.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1788560495","relation":"upstream"},{"ecosystem":"Ubuntu:24.04:LTS","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.22.1+dfsg1+~cs20.10.10.2-1ubuntu1","5.26.3+dfsg1+~cs23.10.12-2"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.3.0+dfsg1+~cs24.12.11-1","7.3.0+dfsg1+~cs24.12.11-2"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.3.0+dfsg1+~cs24.12.11-2","7.16.0+dfsg+~cs3.2.0-2","7.18.2+dfsg+~cs3.2.0-1","7.18.2+dfsg+~cs3.2.0-1build1"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.18.2+dfsg+~cs3.2.0-1build1","7.24.6+dfsg+~cs3.2.0-3","8.5.0+dfsg+~cs3.2.0-2","8.5.0+dfsg+~cs3.2.0-3","8.9.0+dfsg+~cs3.2.0-1"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"},{"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.8.0"}]}],"fixed":["5.8.0"],"provider":"osv","source":"GHSA-q768-x9m6-m9qp","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Enterprise Storage 7.1","cpe":"cpe:/o:suse:ses:7.1","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 12","cpe":"cpe:/o:suse:sle_hpc:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP3","cpe":"cpe:/o:suse:sle_hpc:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP4","cpe":"cpe:/o:suse:sle_hpc:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Web and Scripting 12","cpe":"cpe:/o:suse:sle-module-web-scripting:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Web and Scripting 15 SP3","cpe":"cpe:/o:suse:sle-module-web-scripting:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Web and Scripting 15 SP4","cpe":"cpe:/o:suse:sle-module-web-scripting:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12","cpe":"cpe:/o:suse:sles:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP3","cpe":"cpe:/o:suse:sles:12:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP4","cpe":"cpe:/o:suse:sles:12:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5","cpe":"cpe:/o:suse:sles:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP3","cpe":"cpe:/o:suse:sles:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4","cpe":"cpe:/o:suse:sles:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server LTSS Extended Security 12 SP5","cpe":"cpe:/o:suse:sles-ltss-extended-security:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12","cpe":"cpe:/o:suse:sles_sap:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP3","cpe":"cpe:/o:suse:sles_sap:12:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP4","cpe":"cpe:/o:suse:sles_sap:12:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP5","cpe":"cpe:/o:suse:sles_sap:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP3","cpe":"cpe:/o:suse:sles_sap:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP4","cpe":"cpe:/o:suse:sles_sap:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.2","cpe":"cpe:/o:suse:suse-manager-proxy:4.2","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.3","cpe":"cpe:/o:suse:suse-manager-proxy:4.3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.2","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.2","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.3","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Server 4.2","cpe":"cpe:/o:suse:suse-manager-server:4.2","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Server 4.3","cpe":"cpe:/o:suse:suse-manager-server:4.3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/search-ui-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-31151"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"not_affected","packages":["devspaces/dashboard-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-31151"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1788560495","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1788560495","published_at":"2026-09-04T22:21:35Z","modified_at":"2026-10-15T09:48:03.135244Z","summary":"TuxCare security update for undici (14 CVEs)","details":"TuxCare rebuilt undici to address 14 CVEs. Fixed in 5.5.1-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"undici","purl":"pkg:npm/undici","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.5.1-tuxcare.0"},{"fixed":"5.5.1-tuxcare.1"}]}],"versions":["5.5.1"],"fixed":["5.5.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1788560495","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2022-31151","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-31151","license":"CC-BY-4.0","published_at":"2022-07-20T23:00:15Z","modified_at":"2025-04-22T17:48:20.472Z","summary":"Uncleared cookies on cross-host/cross-origin redirect in undici","details":"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).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2022-31151"}],"affected":[{"ecosystem":"CVE","package":"nodejs/undici","versions":["< 5.7.1"],"provider":"cvelistv5","source":"CVE-2022-31151","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp"},{"type":"WEB","url":"https://github.com/nodejs/undici/issues/872"},{"type":"WEB","url":"https://hackerone.com/reports/1635514"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220909-0006/"}]},{"provider":"csaf-suse","source_id":"CVE-2022-31151","relation":"self","url":"https://www.suse.com/security/cve/CVE-2022-31151/","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-02-15T03:25:44Z","modified_at":"2025-09-29T01:01:29Z","summary":"SUSE CVE CVE-2022-31151","details":"SUSE CVE-2022-31151\n\nAuthorization 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).","severity":[{"type":"SUSE","score":"low","source":"CVE-2022-31151"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Enterprise Storage 7.1","cpe":"cpe:/o:suse:ses:7.1","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 12","cpe":"cpe:/o:suse:sle_hpc:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP3","cpe":"cpe:/o:suse:sle_hpc:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP4","cpe":"cpe:/o:suse:sle_hpc:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Web and Scripting 12","cpe":"cpe:/o:suse:sle-module-web-scripting:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Web and Scripting 15 SP3","cpe":"cpe:/o:suse:sle-module-web-scripting:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Web and Scripting 15 SP4","cpe":"cpe:/o:suse:sle-module-web-scripting:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12","cpe":"cpe:/o:suse:sles:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP3","cpe":"cpe:/o:suse:sles:12:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP4","cpe":"cpe:/o:suse:sles:12:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5","cpe":"cpe:/o:suse:sles:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 12 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP3","cpe":"cpe:/o:suse:sles:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4","cpe":"cpe:/o:suse:sles:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server LTSS Extended Security 12 SP5","cpe":"cpe:/o:suse:sles-ltss-extended-security:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12","cpe":"cpe:/o:suse:sles_sap:12","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP3","cpe":"cpe:/o:suse:sles_sap:12:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP4","cpe":"cpe:/o:suse:sles_sap:12:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 12 SP5","cpe":"cpe:/o:suse:sles_sap:12:sp5","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP3","cpe":"cpe:/o:suse:sles_sap:15:sp3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP4","cpe":"cpe:/o:suse:sles_sap:15:sp4","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.2","cpe":"cpe:/o:suse:suse-manager-proxy:4.2","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.3","cpe":"cpe:/o:suse:suse-manager-proxy:4.3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.2","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.2","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.3","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Server 4.2","cpe":"cpe:/o:suse:suse-manager-server:4.2","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"},{"vendor":"SUSE","product":"SUSE Manager Server 4.3","cpe":"cpe:/o:suse:suse-manager-server:4.3","status":"not_affected","packages":["nodejs16","nodejs16-devel","nodejs16-docs","npm16"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-31151"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-31151"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1201749"}]},{"provider":"nvd","source_id":"CVE-2022-31151","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31151","severity":[],"affected":[{"ecosystem":"NVD","package":"nodejs:undici","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.1"}]}],"fixed":["5.7.1"],"provider":"nvd","source":"CVE-2022-31151","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2022-31151","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-31151","published_at":"2022-07-21T04:15:12.157Z","modified_at":"2026-11-18T06:02:23.022108Z","details":"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).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"DEBIAN-CVE-2022-31151"}],"affected":[{"ecosystem":"Debian:12","package":"node-undici","purl":"pkg:deb/debian/node-undici?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.0+dfsg1+~cs18.9.16-1"}]}],"fixed":["5.8.0+dfsg1+~cs18.9.16-1"],"provider":"osv","source":"DEBIAN-CVE-2022-31151","relation":"self"},{"ecosystem":"Debian:13","package":"node-undici","purl":"pkg:deb/debian/node-undici?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.0+dfsg1+~cs18.9.16-1"}]}],"fixed":["5.8.0+dfsg1+~cs18.9.16-1"],"provider":"osv","source":"DEBIAN-CVE-2022-31151","relation":"self"},{"ecosystem":"Debian:14","package":"node-undici","purl":"pkg:deb/debian/node-undici?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.0+dfsg1+~cs18.9.16-1"}]}],"fixed":["5.8.0+dfsg1+~cs18.9.16-1"],"provider":"osv","source":"DEBIAN-CVE-2022-31151","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-31151"}]},{"provider":"osv","source_id":"GHSA-q768-x9m6-m9qp","relation":"self","url":"https://osv.dev/vulnerability/GHSA-q768-x9m6-m9qp","license":"CC-BY-4.0","published_at":"2022-07-21T20:31:05Z","modified_at":"2026-02-04T03:02:08.652391Z","summary":"undici before v5.8.0 vulnerable to uncleared cookies on cross-host / cross-origin redirect","details":"### Impact\n\nAuthorization headers are already cleared on cross-origin redirect in\nhttps://github.com/nodejs/undici/blob/main/lib/handler/redirect.js#L189, based on https://github.com/nodejs/undici/issues/872.\n\nHowever, cookie headers which are sensitive headers and are official headers found in the spec, remain uncleared. There also has been active discussion of implementing a cookie store https://github.com/nodejs/undici/pull/1441, which suggests that there are active users using cookie headers in undici.\nAs such 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.\n\n### Patches\n\nThis was patched in v5.8.0.\n\n### Workarounds\n\nBy default, this vulnerability is not exploitable.\nDo not enable redirections, i.e. `maxRedirections: 0` (the default). \n\n### References\n\nhttps://hackerone.com/reports/1635514\nhttps://curl.se/docs/CVE-2018-1000007.html\nhttps://curl.se/docs/CVE-2022-27776.html\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [undici repository](https://github.com/nodejs/undici/issues)\n* To make a report, follow the [SECURITY](https://github.com/nodejs/node/blob/HEAD/SECURITY.md) document","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"GHSA-q768-x9m6-m9qp"}],"affected":[{"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.8.0"}]}],"fixed":["5.8.0"],"provider":"osv","source":"GHSA-q768-x9m6-m9qp","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31151"},{"type":"WEB","url":"https://github.com/nodejs/undici/issues/872"},{"type":"WEB","url":"https://github.com/nodejs/undici/pull/1441"},{"type":"WEB","url":"https://github.com/nodejs/undici/commit/0a5bee9465e627be36bac88edf7d9bbc9626126d"},{"type":"WEB","url":"https://hackerone.com/reports/1635514"},{"type":"PACKAGE","url":"https://github.com/nodejs/undici"},{"type":"WEB","url":"https://github.com/nodejs/undici/blob/main/lib/handler/redirect.js#L189"},{"type":"WEB","url":"https://github.com/nodejs/undici/releases/tag/v5.8.0"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220909-0006"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2022-31151","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-31151","license":"CC-BY-SA-4.0","published_at":"2022-07-21T04:15:00Z","modified_at":"2026-10-17T12:56:21.771318Z","details":"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).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"UBUNTU-CVE-2022-31151"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"UBUNTU-CVE-2022-31151"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2022-31151"}],"affected":[{"ecosystem":"Ubuntu:24.04:LTS","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.22.1+dfsg1+~cs20.10.10.2-1ubuntu1","5.26.3+dfsg1+~cs23.10.12-2"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.3.0+dfsg1+~cs24.12.11-1","7.3.0+dfsg1+~cs24.12.11-2"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.3.0+dfsg1+~cs24.12.11-2","7.16.0+dfsg+~cs3.2.0-2","7.18.2+dfsg+~cs3.2.0-1","7.18.2+dfsg+~cs3.2.0-1build1"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"node-undici","purl":"pkg:deb/ubuntu/node-undici?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.18.2+dfsg+~cs3.2.0-1build1","7.24.6+dfsg+~cs3.2.0-3","8.5.0+dfsg+~cs3.2.0-2","8.5.0+dfsg+~cs3.2.0-3","8.9.0+dfsg+~cs3.2.0-1"],"provider":"osv","source":"UBUNTU-CVE-2022-31151","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31151"},{"type":"REPORT","url":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp"},{"type":"REPORT","url":"https://github.com/nodejs/undici/issues/872"},{"type":"REPORT","url":"https://hackerone.com/reports/1635514"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-31151"}]},{"provider":"redhat-vex","source_id":"CVE-2022-31151","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-31151","license":"CC-BY-4.0","published_at":"2022-07-21T00:00:00Z","modified_at":"2025-05-29T07:01:23Z","summary":"nodejs/undici: Cookie headers uncleared on cross-origin redirect","details":"A flaw was found in the undici package. After cookie headers are set, they are not cleared. This issue could allow an attacker to take advantage of this cookie, which could be used to control the redirection target.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2022-31151"},{"type":"Red Hat","score":"Moderate","source":"CVE-2022-31151"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/search-ui-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-31151"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"not_affected","packages":["devspaces/dashboard-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-31151"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-31151.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-31151"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2121396"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-31151"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31151"},{"type":"WEB","url":"http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-31151"},{"type":"WEB","url":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp"}]}],"references":[{"type":"WEB","url":"https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp"},{"type":"WEB","url":"https://github.com/nodejs/undici/issues/872"},{"type":"WEB","url":"https://hackerone.com/reports/1635514"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220909-0006/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-31151"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1201749"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-31151"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31151"},{"type":"WEB","url":"https://github.com/nodejs/undici/pull/1441"},{"type":"WEB","url":"https://github.com/nodejs/undici/commit/0a5bee9465e627be36bac88edf7d9bbc9626126d"},{"type":"PACKAGE","url":"https://github.com/nodejs/undici"},{"type":"WEB","url":"https://github.com/nodejs/undici/blob/main/lib/handler/redirect.js#L189"},{"type":"WEB","url":"https://github.com/nodejs/undici/releases/tag/v5.8.0"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220909-0006"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31151"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-31151"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-31151.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-31151"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2121396"},{"type":"WEB","url":"http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-31151"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1788560495","url":"https://osv.dev/vulnerability/CLSA-2026-1788560495","modified_at":"2026-10-15T09:48:03.135244Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2022-31151","url":"https://www.cve.org/CVERecord?id=CVE-2022-31151","license":"CC-BY-4.0","modified_at":"2025-04-22T17:48:20.472Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2022-31151","url":"https://www.suse.com/security/cve/CVE-2022-31151/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-09-29T01:01:29Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-31151","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31151","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2022-31151","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-31151","modified_at":"2026-11-18T06:02:23.022108Z","relation":"self"},{"provider":"osv","source_id":"GHSA-q768-x9m6-m9qp","url":"https://osv.dev/vulnerability/GHSA-q768-x9m6-m9qp","license":"CC-BY-4.0","modified_at":"2026-02-04T03:02:08.652391Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2022-31151","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-31151","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:56:21.771318Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-31151","url":"https://access.redhat.com/security/cve/CVE-2022-31151","license":"CC-BY-4.0","modified_at":"2025-05-29T07:01:23Z","relation":"self"}]}
