{"id":"CVE-2026-11525","published":"2026-06-17T17:31:03Z","modified":"2026-06-17T17:54:22Z","title":"undici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matching","vendor":"undici","product":"undici","tier":"tail","description":{"text":"Impact:\nWhen undici parses a Set-Cookie header, it accepts any SameSite attribute value that contains Strict, Lax, or None as a substring, rather than the case-insensitive exact match specified by RFC 6265. Non-spec values are silently mapped to one of the three standard tokens. For example, SameSite=NoneOfYourBusiness is parsed as None (the most permissive setting), and SameSite=StrictLax is parsed as Lax (a downgrade from Strict).\n\nAffected applications are those that consume Set-Cookie headers from server responses (for example via undici's fetch or proxy code paths) and then forward or rely on the parsed sameSite attribute. A malicious or non-compliant server can coerce the consumer's view of a cookie's SameSite policy to a weaker value, silently degrading the SameSite enforcement the cookie is supposed to provide.\n\nThis was introduced in undici 5.15.0 when the cookies feature was added.\n\nPatches:\nUpgrade to undici v6.26.0, v7.28.0 or v8.5.0.\n\nWorkarounds:\nAfter parsing a Set-Cookie header, validate that the resulting sameSite attribute is one of 'Strict', 'Lax', or 'None' (exact, case-insensitive) before forwarding or relying on it.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00282,"percentile":0.13294,"provenance":"source"},"cwes":[{"id":"CWE-183","name":"Permissive List of Allowed Inputs"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":2.66},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"undici","affectedVersions":[{"vendor":"undici","product":"undici","versions":["< 6.26.0",">= 7.0.0, < 7.28.0",">= 8.0.0, < 8.5.0"]}],"fixedVersions":[{"vendor":"undici","product":"undici","versions":["6.26.0","7.28.0","8.5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-17T17:53:40.763762Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"undici","vulnerableRanges":["<6.27.0",">=7.0.0, <7.28.0",">=8.0.0, <8.5.0"],"patched":["6.27.0","7.28.0","8.5.0"],"from":["GHSA-g8m3-5g58-fq7m"],"provenance":"source"}],"summary":{"text":"The undici HTTP client library's Set-Cookie parser accepts any SameSite attribute value that merely contains \"Strict\", \"Lax\", or \"None\" as a substring, instead of requiring an exact case-insensitive match, and silently maps such values to one of those tokens. An attacker controlling a server whose responses an application consumes through undici's cookie-handling code paths can cause the parsed SameSite policy to be weaker than the server intended, with the attack requiring the server to send a crafted Set-Cookie header and the consuming application to forward or rely on the parsed attribute.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:09Z"},"euvd":{"id":"EUVD-2026-37758","exploited":false,"provenance":"source"}}