{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-16729","id":"CVE-2026-16729","title":"undici vulnerable to cookie attribute injection via unsanitized domain and unparsed setCookie fields","description":"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 attribu","descriptionLong":"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.","published":"2026-07-29T16:45:57.001Z","updated":"2026-10-28T02:30:48.864045123Z","reserved":"2026-07-23T05:44:24.720Z","status":"Analyzed","rejected":false,"assigner":"openjs","metric":{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"openjs"},"metrics":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"openjs"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"ce714d77-add3-4f53-aff5-83d477b104bb"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["undici"],"affectedProducts":[{"vendor":"undici","product":"undici","defaultStatus":"unaffected","versions":[{"versionType":"semver","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"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"undici","purl":"pkg:npm/undici","ranges":["<6.28.0",">=7.0.0 <7.29.0",">=8.0.0 <8.9.0"],"fixed":["6.28.0","7.29.0","8.9.0"],"advisory":"GHSA-v3r7-h72x-cjcm"}],"cwes":["CWE-74"],"aliases":["GHSA-v3r7-h72x-cjcm"],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcm","tags":["Vendor Advisory","advisory","web"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16729.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16729","tags":["advisory"]},{"url":"https://github.com/nodejs/undici/commit/10d93fc332f2c8c161982dec3833201de29891b5","tags":["web"]},{"url":"https://github.com/nodejs/undici/commit/3bf91ddb493e853957f3a58e155326a668ab8aef","tags":["web"]},{"url":"https://github.com/nodejs/undici/commit/af7484043ee075a6f216da0ad77e1dac55199235","tags":["web"]},{"url":"https://github.com/nodejs/undici","tags":["package"]},{"url":"https://github.com/nodejs/undici/releases/tag/v6.28.0","tags":["web"]},{"url":"https://github.com/nodejs/undici/releases/tag/v7.29.0","tags":["web"]},{"url":"https://github.com/nodejs/undici/releases/tag/v8.9.0","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00278,"epssPercentile":0.20632,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-16729","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16729","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-16729","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v3r7-h72x-cjcm","ok":true,"note":"GHSA-v3r7-h72x-cjcm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-16729","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}