Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 3, 2026
- Updated
- Nov 3, 2026
- Reserved
- Oct 23, 2026
Description
Effect is a TypeScript framework that consists of several packages that work together to help build TypeScript applications. From @effect/platform 0.1.0 until 0.97.1 and effect 4.0.0-beta.0 until 4.0.0-beta.103, the name, domain, and path fields passed to makeCookie() allow semicolon delimiters that serializeCookie() writes verbatim into Set-Cookie headers. A caller that supplies attacker-controlled values can append cookie attributes, including a broader Domain or, when the caller has not set those options itself, SameSite=None or Max-Age. Encoded cookie values and CR or LF characters remain unaffected. This can widen a cookie's scope or add otherwise-unset cookie attributes. This issue is fixed in @effect/platform 0.97.1 and effect 4.0.0-beta.103.
| Product | Versions |
|---|---|
| effect Effect-TS | >= 4.0.0-beta.0, < 4.0.0-beta.103 Affected |
| platform @effect | >= 0.1.0, < 0.97.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | GitHub_M |
Weaknesses
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
- https://github.com/Effect-TS/effect/security/advisories/GHSA-chp3-j5qr-2vfr
- https://github.com/Effect-TS/effect/pull/6763
- https://github.com/Effect-TS/effect/pull/6765
- https://github.com/Effect-TS/effect/commit/4a57af24011db1d66e947289d2f7ffc2074696d2
- https://github.com/Effect-TS/effect/commit/5859b373b9be04d5037a594196b4743ad80379bd
- https://github.com/Effect-TS/effect/releases/tag/@effect/platform@0.97.1
- https://github.com/Effect-TS/effect/releases/tag/effect@4.0.0-beta.103
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.