Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting effect package, versions >=4.0.0-beta.0 <4.0.0-beta.103


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-EFFECT-22552486
  • 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 to version 4.0.0-beta.103 or higher.

Overview

effect is a node package that allows you to add effects on images.

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