{"id":"GHSA-g8m3-5g58-fq7m","revision":"fa27eced10634af6bfd6959a313cead1","records":[{"revision":"fa27eced10634af6bfd6959a313cead1","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-g8m3-5g58-fq7m","aliases":["CVE-2026-11525"],"title":"undici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matching","description":"## Impact\n\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:\n\n- `SameSite=NoneOfYourBusiness` is parsed as `None`, the most permissive setting.\n- `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\n## Patches\n\nUpgrade to undici v6.27.0, v7.28.0 or v8.5.0.\n\n## Workarounds\n\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.","state":0,"publishedAt":"2026-06-19T14:34:46+00:00","modifiedAt":"2026-09-10T03:51:08.6632048+00:00","affected":[{"ecosystem":"npm","name":"undici","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"6.27.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"undici","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.28.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"undici","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"8.0.0"},{"kind":"fixed","version":"8.5.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m","https://nvd.nist.gov/vuln/detail/CVE-2026-11525","https://cna.openjsf.org/security-advisories.html","https://github.com/nodejs/undici"],"sourceUrl":"https://github.com/advisories/GHSA-g8m3-5g58-fq7m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-g8m3-5g58-fq7m","identifiers":["GHSA-g8m3-5g58-fq7m","CVE-2026-11525"]},"retained":false,"historicalAffected":[]}],"coverage":[]}