CVE-2026-11525 Details
Description
Impact: When 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). Affected 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. This was introduced in undici 5.15.0 when the cookies feature was added. Patches: Upgrade to undici v6.26.0, v7.28.0 or v8.5.0. Workarounds: After 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.
A vulnerability exists in undici versions prior to 6.26.0, 7.0.0 through 7.28.0, and 8.0.0 prior to 8.5.0, allowing for a downgrade of the SameSite attribute in Set-Cookie headers. When undici parses these headers, it incorrectly accepts any value containing 'Strict', 'Lax', or 'None' as a substring, instead of adhering to the case-insensitive exact match required by RFC 6265. This flaw, introduced in version 5.15.0 when the cookies feature was added, can lead to a weaker SameSite policy being enforced. Affected applications that rely on undici's fetch or proxy code paths may inadvertently degrade the SameSite enforcement of cookies, allowing for potential security risks.
Users can upgrade to undici versions 6.26.0, 7.28.0, or 8.5.0. After parsing a Set-Cookie header, it is recommended to validate that the resulting SameSite attribute is one of 'Strict', 'Lax', or 'None' (exact, case-insensitive) before forwarding or relying on it.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | openjs | Vendor Advisory |
| https://github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m | openjs | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-183 | Permissive List of Allowed Inputs | openjs |
Affected Products
| Product | Versions |
|---|---|
| nodejs undici | < 6.27.0 >= 7.0.0, < 7.28.0 >= 8.0.0, < 8.5.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | New CVE Received | openjs |