CVE-2026-16729
undici vulnerable to cookie attribute injection via unsanitized domain and unparsed setCookie fields
undici's setCookie function does not fully sanitize cookie attributes. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, a domain value is not checked for semicolons and entries in the unparsed array are not sanitized, so attacker-influenced input can inject additional cookie attributes. For example, a domain value containing a semicolon can append attributes such as SameSite, and an unparsed entry can inject attributes such as HttpOnly, without the caller setting them. Applications that pass user-controlled input to these fields, such as multi-tenant or reverse-proxy servers that scope session cookies to a tenant-supplied domain, can have SameSite CSRF protections bypassed, or the Secure, HttpOnly, and SameSite attributes forced, stripped, or overridden. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.278% · 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:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4.8 · published by openjsCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:58:09.934Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:09.934Z | CVE Program |
| epss | verified | 2026-11-19T16:04:47.342Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:31.685Z | OSV |
| affected | verified | 2026-11-19T12:58:09.934Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:09.934Z | CVE Program |
Affected versions and configuration
undici undici; default status: unaffected: 0 to < 6.28.0 [affected; scheme: semver]; 6.28.0 [unaffected; scheme: semver]; 7.0.0 to < 7.29.0 [affected; scheme: semver]; 7.29.0 [unaffected; scheme: semver]; 8.0.0 to < 8.9.0 [affected; scheme: semver]; 8.9.0 [unaffected; scheme: semver]
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": "undici",
"product": "undici",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "6.28.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.28.0",
"versionType": "semver"
},
{
"status": "affected",
"version": "7.0.0",
"lessThan": "7.29.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "7.29.0",
"versionType": "semver"
},
{
"status": "affected",
"version": "8.0.0",
"lessThan": "8.9.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "8.9.0",
"versionType": "semver"
}
],
"packageURL": "pkg:npm/undici",
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-16729",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-07-29T18:08:05.310961Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-07-29T18:08:16.149Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-v3r7-h72x-cjcm",
"aliases": [
"CVE-2026-16729"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.28.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/2026/08/GHSA-v3r7-h72x-cjcm/GHSA-v3r7-h72x-cjcm.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.29.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/2026/08/GHSA-v3r7-h72x-cjcm/GHSA-v3r7-h72x-cjcm.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.9.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/2026/08/GHSA-v3r7-h72x-cjcm/GHSA-v3r7-h72x-cjcm.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcm",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-16729",
"type": "ADVISORY"
},
{
"url": "https://github.com/nodejs/undici/commit/10d93fc332f2c8c161982dec3833201de29891b5",
"type": "WEB"
},
{
"url": "https://github.com/nodejs/undici/commit/3bf91ddb493e853957f3a58e155326a668ab8aef",
"type": "WEB"
},
{
"url": "https://github.com/nodejs/undici/commit/af7484043ee075a6f216da0ad77e1dac55199235",
"type": "WEB"
},
{
"url": "https://cna.openjsf.org/security-advisories.html",
"type": "WEB"
},
{
"url": "https://github.com/nodejs/undici",
"type": "PACKAGE"
},
{
"url": "https://github.com/nodejs/undici/releases/tag/v6.28.0",
"type": "WEB"
},
{
"url": "https://github.com/nodejs/undici/releases/tag/v7.29.0",
"type": "WEB"
},
{
"url": "https://github.com/nodejs/undici/releases/tag/v8.9.0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-74"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-07-29T17:16:51Z",
"github_reviewed_at": "2026-08-03T19:30:52Z"
}
}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 | 6.28.0 | Official record |
| ecosystem-boundary | npm / package | undici | Not a distribution channel | 7.29.0 | Official record |
| ecosystem-boundary | npm / package | undici | Not a distribution channel | 8.9.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: 2026-08-03T19:30:52.000Z
Source modification: 2026-09-10T03:51:14.535ZDocument fingerprint
5d6d75d792b516aad9918564f2547ee8b9e8538569dc2e4ae0c28391e44547c6 - CVE ProgramConsulted: 2026-11-19T12:58:09.934ZArchived source JSON
Source publication: 2026-07-29T16:45:57.001Z
Source modification: 2026-07-29T18:08:16.149ZDocument fingerprint
4dbe44a00537325e15766b95b5eed18ba8008c25b642a75bb6090de9b9e6b14c - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:47.342ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
003916460c2793c49861244c6d747c5f7b21d769f81d58483e4fe03eb7a3f759
Official status history
- UNKNOWN → PUBLISHED · · evidence