CVE-2026-115779
Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()
Also known as GHSA-chp3-j5qr-2vfr
Mitigation
- Upgrade @effect/platform to 0.97.1 or later.
- Upgrade effect to 4.0.0-beta.103 or later.
Who should check
- Projects that depend on npm package @effect/platform (>= 0.1.0, < 0.97.1)
- Projects that depend on npm package effect (>= 4.0.0-beta.0, < 4.0.0-beta.103)
Vulnerability facts
- Affected
- @effect/platform >= 0.1.0, < 0.97.1; effect >= 4.0.0-beta.0, < 4.0.0-beta.103
- Fixed in
- 0.97.1, 4.0.0-beta.103
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, GitHub)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.61% chance of exploitation in 30 days (percentile 44, 2026-11-28)
- CWE
- CWE-20, CWE-74
- Modified
Description
### Impact 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. ### Patches Fixed in #6763 (v4) and #6765 (v3): the shared regex is split into per-field validators that reject `;`, and `serializeCookie()` now validates before writing the header. ### Workarounds Do not pass user input into `name`, `domain`, or `path`; set them from application constants.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @effect/platform | >= 0.1.0, < 0.97.1 | 0.97.1 | ghsa |
| npm effect | >= 4.0.0-beta.0, < 4.0.0-beta.103 | 4.0.0-beta.103 | ghsa |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-115779. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-115779.md Affected: @effect/platform >= 0.1.0, < 0.97.1; effect >= 4.0.0-beta.0, < 4.0.0-beta.103 Fixed in: 0.97.1, 4.0.0-beta.103 Steps: 1. Search this machine and project for @effect/platform (npm), effect (npm): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Patches
FAQ
Is CVE-2026-115779 being exploited?
There is no confirmed exploitation: CVE-2026-115779 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-115779?
Medium: CVSS 6.3 (v4.0, scored by GitHub). Remote, no login needed.
Which versions are affected by CVE-2026-115779?
@effect/platform >= 0.1.0, < 0.97.1; effect >= 4.0.0-beta.0, < 4.0.0-beta.103.
Is there a fix for CVE-2026-115779?
Yes. Fixed in 0.97.1, 4.0.0-beta.103. Upgrade @effect/platform to 0.97.1 or later. Upgrade effect to 4.0.0-beta.103 or later.
How do I check if I'm affected by CVE-2026-115779?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.