CVE-2026-115779: Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-chp3-j5qr-2vfr
Summary
A cookie attribute injection vulnerability exists in `@effect/platform` and `effect` where untrusted input in cookie fields can append arbitrary attributes to `Set-Cookie` headers. Engineering teams using affected versions should update to the patched releases immediately.
Who is affected
Deployments passing untrusted input into the `name`, `domain`, or `path` fields of `makeCookie()` are affected. Attackers can leverage this to inject arbitrary cookie attributes like `Domain` or `SameSite`, potentially widening cookie scopes or manipulating session properties.
Exploitability
The vulnerability has an attack vector over the network with low attack complexity, requiring low privileges and no user interaction. The EPSS score is 0.006 with a percentile of 0.508, and the issue is not listed on the CISA KEV catalog.
Remediation
- Upgrade npm package @effect/platform to version 0.97.1 or higher.
- Upgrade npm package effect to version 4.0.0-beta.103 or higher.
- Do not pass user input into name, domain, or path; set them from application constants as a workaround.
How to check your project
- Check project dependency files (such as package.json) for @effect/platform or effect.
- Verify whether installed versions fall within the vulnerable ranges: @effect/platform introduced 0.1.0 and fixed before 0.97.1, or effect introduced 4.0.0-beta.0 and fixed before 4.0.0-beta.103.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @effect/platform |
>= 0.1.0, < 0.97.1 | 0.97.1 | npm install @effect/[email protected] |
| npm | effect |
>= 4.0.0-beta.0, < 4.0.0-beta.103 | 4.0.0-beta.103 | npm install [email protected] |
CVSS 4.0 vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | Low |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | Low |
| Integrity (subsequent systems) | Low |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the vulnerability in makeCookie()?
The fields name, domain, and path were previously validated using a regex that incorrectly allowed the semicolon character, which serves as an attribute separator in Set-Cookie headers.
Is the cookie value field affected?
No, the value field is unaffected because it passes through encodeURIComponent, which properly encodes semicolons.
How was the vulnerability resolved?
The shared regex was split into stricter per-field validators that reject semicolons, and serializeCookie() now validates fields before writing the header.
Original advisory description
References
- WEB https://github.com/Effect-TS/effect/security/advisories/GHSA-chp3-j5qr-2vfr
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-115779
- WEB https://github.com/Effect-TS/effect/pull/6763
- WEB https://github.com/Effect-TS/effect/pull/6765
- WEB https://github.com/Effect-TS/effect/commit/4a57af24011db1d66e947289d2f7ffc2074696d2
- WEB https://github.com/Effect-TS/effect/commit/5859b373b9be04d5037a594196b4743ad80379bd
- PACKAGE https://github.com/Effect-TS/effect
- WEB https://github.com/Effect-TS/effect/releases/tag/@effect/[email protected]
- WEB https://github.com/Effect-TS/effect/releases/tag/[email protected]
Source records: GHSA-chp3-j5qr-2vfr (OSV.dev) · EPSS by FIRST, 2026-11-21.