CVE-2026-11525
Received Received - Intake
BaseFortify

Publication date: 2026-06-17

Last updated on: 2026-06-17

Assigner: openjs

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-17
Last Modified
2026-06-17
Generated
2026-06-18
AI Q&A
2026-06-17
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 4 associated CPEs
Vendor Product Version / Range
nodejs undici 5.15.0
nodejs undici to 6.26.0 (exc)
nodejs undici to 7.28.0 (exc)
nodejs undici to 8.5.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-183 The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability occurs in the undici HTTP client library when it parses the SameSite attribute in Set-Cookie headers. Instead of requiring an exact case-insensitive match to the standard values 'Strict', 'Lax', or 'None' as specified by RFC 6265, undici accepts any value containing these as substrings. For example, a value like 'SameSite=NoneOfYourBusiness' is incorrectly parsed as 'None', and 'SameSite=StrictLax' is parsed as 'Lax'.

Because of this permissive parsing, a malicious or non-compliant server can trick applications using undici into treating cookies with weaker SameSite policies than intended, potentially downgrading the security enforcement silently.

Impact Analysis

If your application uses undici to consume Set-Cookie headers and relies on the parsed SameSite attribute, this vulnerability can cause your application to accept weaker cookie policies than intended. This means cookies that should have stricter cross-site request protections might be downgraded to more permissive settings without your knowledge.

Such a downgrade can increase the risk of cross-site request forgery (CSRF) or other cross-site attacks by allowing cookies to be sent in contexts where they should be restricted.

The vulnerability has a low severity score (CVSS 3.7) and primarily impacts integrity, with no direct impact on confidentiality or availability.

Detection Guidance

This vulnerability can be detected by inspecting Set-Cookie headers in HTTP responses processed by undici versions before 6.26.0, 7.28.0, or 8.5.0. Specifically, look for SameSite attribute values that contain substrings like 'Strict', 'Lax', or 'None' but are not exact matches, such as 'SameSite=NoneOfYourBusiness' or 'SameSite=StrictLax'.

To detect this on your system or network, you can capture HTTP traffic and filter Set-Cookie headers with suspicious SameSite attribute values.

  • Use a network packet capture tool like tcpdump or Wireshark to capture HTTP responses.
  • Run a command such as: tcpdump -A -s 0 'tcp port 80 or tcp port 443' | grep -i 'Set-Cookie'
  • Use grep or similar tools to search for SameSite attributes that are not exactly 'Strict', 'Lax', or 'None' (case-insensitive). For example: grep -i 'SameSite=' | grep -viE 'SameSite=(Strict|Lax|None)'

Additionally, if you have access to application logs or code, verify the parsed SameSite attribute values after undici processes Set-Cookie headers to ensure they are exactly one of the allowed values.

Mitigation Strategies

The primary mitigation is to upgrade undici to a patched version: v6.26.0, v7.28.0, or v8.5.0.

If upgrading immediately is not possible, implement a workaround by validating the SameSite attribute after parsing any Set-Cookie header. Ensure that the attribute is exactly one of 'Strict', 'Lax', or 'None' (case-insensitive) before forwarding or relying on it.

This validation prevents non-standard or malicious SameSite values from silently downgrading cookie security policies.

Compliance Impact

This vulnerability allows a malicious or non-compliant server to coerce the consumer's view of a cookie's SameSite policy to a weaker value by permissive substring matching rather than exact matching as specified by RFC 6265.

Since the SameSite attribute controls cookie behavior related to cross-site request forgery (CSRF) protections and user privacy, weakening its enforcement could potentially degrade security controls that help meet regulatory requirements for data protection and privacy, such as GDPR and HIPAA.

However, the vulnerability has a low severity score (CVSS 3.7) and primarily impacts integrity without affecting confidentiality or availability directly.

To maintain compliance, affected applications should upgrade to patched versions or validate the SameSite attribute strictly to ensure it matches the exact allowed values, thereby preserving the intended cookie security policies.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-11525. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart