npm
CVE-2026-115779
Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()
- Severity
- Medium
- Published
- 10 Nov 2026
- Last changed
- 10 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.97.1, 4.0.0-beta.103
- Exploit chance
- 0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-chp3-j5qr-2vfr
- Sources
- OSV.dev and GitHub
Description
The name, domain, and path fields of makeCookie() were validated with a regex that allows ;, the attribute separator in Set-Cookie headers. Because serializeCookie() writes those fields verbatim, a caller who passes untrusted input into any of them can append arbitrary attributes to the header.
For example, a domain of "legit.com; Domain=.parent.tld" serializes to session=token; Domain=legit.com; Domain=.parent.tld. RFC 6265 §5.3 takes the last occurrence, so the injected domain wins and the cookie widens to the parent domain. The same trick sets SameSite=None or Max-Age when the caller has not set those options itself.
The value field is unaffected: it passes through encodeURIComponent, which encodes ;. CR and LF are rejected by the existing regex, so header splitting is not possible.
Workarounds
Do not pass user input into name, domain, or path; set them from application constants.
Affected software
| Software | Affected versions |
|---|---|
@effect/platformnpm · osv:npm:@effect/platform |
|
effectnpm · osv:npm:effect |
|
About @effect/platform
- Weekly downloads (npm)
- 1,954,880npm, 24 Nov 2026
This is the only vulnerability in @effect/platform in our list.
About effect
- Weekly downloads (npm)
- 66,627,362npm, 24 Nov 2026
Vulnerabilities in effect
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-115779
- GitHub Advisory Database https://github.com/advisories/GHSA-chp3-j5qr-2vfr