CVE-2022-31151
Uncleared cookies on cross-host/cross-origin redirect in undici
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).
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.739% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 3.7 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:56:32.211Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:32.211Z | CVE Program |
| epss | verified | 2026-11-19T16:04:33.773Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:31.685Z | OSV |
| affected | verified | 2026-11-19T12:56:32.211Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:32.211Z | CVE Program |
Affected versions and configuration
nodejs undici; default status: unknown: < 5.7.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "nodejs",
"product": "undici",
"versions": [
{
"status": "affected",
"version": "< 5.7.1"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/nodejs/undici/issues/872",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://hackerone.com/reports/1635514",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20220909-0006/",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T07:11:39.602Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-31151",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-22T15:45:24.308162Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-22T17:48:20.472Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-q768-x9m6-m9qp",
"aliases": [
"CVE-2022-31151"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.8.0"
}
]
}
],
"package": {
"name": "undici",
"purl": "pkg:npm/undici",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-q768-x9m6-m9qp/GHSA-q768-x9m6-m9qp.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31151",
"type": "ADVISORY"
},
{
"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": "WEB"
},
{
"url": "https://github.com/nodejs/undici",
"type": "PACKAGE"
},
{
"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": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-346",
"CWE-601",
"CWE-93"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2022-07-21T04:15:00Z",
"github_reviewed_at": "2022-07-21T20:31:05Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | undici | Not a distribution channel | 5.8.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:31.685ZArchived source JSON
Source publication: 2022-07-21T20:31:05.000Z
Source modification: 2026-02-04T03:02:08.652ZDocument fingerprint
5d6d75d792b516aad9918564f2547ee8b9e8538569dc2e4ae0c28391e44547c6 - CVE ProgramConsulted: 2026-11-19T12:56:32.211ZArchived source JSON
Source publication: 2022-07-20T23:00:15.000Z
Source modification: 2025-04-22T17:48:20.472ZDocument fingerprint
4b7bddb532f02cded18ad42954551c0543fd6a856455a062179548de159d131f - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:33.773ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
61a73aadbfc560e47e1294f3a67a7c0f50173e56af53ae885ac6a32a73b8f00f
Official status history
- UNKNOWN → PUBLISHED · · evidence