Read the docs
TI-2022-13194 Aliases CVE-2022-31151GHSA-q768-x9m6-m9qp

Uncleared cookies on cross-host/cross-origin redirect in undici

Priority MEDIUM 62CWE-601Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Spoofing, Security bypass
Confidentiality · integrity · availability
Low · Low · None
Fix status
Partial Red Hat: 1 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601 and CWE-346.

Summary

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).

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00739 54th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial undici (nodejs): 5.7.1undici (npm): 5.8.0Red Hat: 1 advisoryRed Hat: 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
NodeJSundicibefore 5.7.15.7.1Patch availableCNA
—undici (npm)before 5.8.05.8.0Patch availableGHSA-q768-x9m6-m9qp
  • undici VendorNodeJS Affected before 5.7.1 Fixed in 5.7.1 Patch available CNA
  • undici (npm) Vendor— Affected before 5.8.0 Fixed in 5.8.0 Patch available GHSA-q768-x9m6-m9qp

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*before 5.7.1VulnerableNodeJS
  • cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* Versions before 5.7.1 Vulnerable ·NodeJS

Remediation

  • Fix · CNA undici (nodejs) Fixed in 5.7.1
  • Fix · GHSA-q768-x9m6-m9qp undici (npm) Fixed in 5.8.0 Advisory →

Red Hat 1 advisory

  • RHSA-2022:6696 Released 2022-09-26 · Red Hat rating Critical
    Red Hat Advanced Cluster Management 2.4.6 security update and bug fixes
    • Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Advanced Cluster Management for Kubernetes 2AffectedNo fix yet
Not affected: 1 product
  • Red Hat OpenShift Dev Spaces

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-31151
  2. 2026-10-03 Alias added: GHSA-q768-x9m6-m9qp

References

  • TI-2026-01215 undici is vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') CVSS 3.1CRITICAL 9.8
  • TI-2022-16376 `undici.request` vulnerable to SSRF using absolute URL on `pathname` CVSS 3.1CRITICAL 9.8
  • TI-2023-09734 CRLF Injection in Nodejs ‘undici’ via host CVSS 3.1MEDIUM 6.5
  • TI-2022-13193 CRLF injection in request headers CVSS 3.1MEDIUM 6.5
  • TI-2022-16375 CRLF Injection in Nodejs ‘undici’ via Content-Type CVSS 3.1MEDIUM 5.3
  • TI-2024-20007 Undici's fetch with integrity option is too lax when algorithm is specified but hash value is in incorrect CVSS 3.1LOW 3.5
See all 51 →

Sources