Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting @effect/platform package, versions >=0.1.0 <0.97.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.63% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-EFFECTPLATFORM-22552487
  • published15 Nov 2026
  • disclosed10 Nov 2026
  • creditZelys-DFKH

Introduced: 10 Nov 2026

NewCVE-2026-115779  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade @effect/platform to version 0.97.1 or higher.

Overview

@effect/platform is an Unified interfaces for common platform-specific services

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the name, domain, and path fields of makeCookie() in @effect/platform. The validation regex applied to these fields permits the ; character, which is the attribute separator in Set-Cookie headers. Because serializeCookie() writes those fields verbatim, an attacker who controls input passed into any of them can append arbitrary cookie attributes to the resulting header. For example, a domain value of "legit.com; Domain=.parent.tld" causes the serialized header to contain a second Domain attribute, and because RFC 6265 §5.3 takes the last occurrence, the injected domain wins, widening the cookie scope to a parent domain. The same technique can inject SameSite=None, Max-Age, or other attributes not set by the caller.

Workaround

Do not pass user-controlled input into the name, domain, or path fields of makeCookie(); set them from application constants only.

CVSS Base Scores

version 4.0
version 3.1