CVE-2026-115779
Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()
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 Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » effectvia npm effect | >= 4.0.0-beta.0, < 4.0.0-beta.103 | 4.0.0-beta.103 |
| org.mvnpm.at.effect » platformvia npm @effect/platform | >= 0.1.0, < 0.97.1 | 0.97.1 |
| org.webjars.npm » effectvia npm effect | >= 4.0.0-beta.0, < 4.0.0-beta.103 | 4.0.0-beta.103 |
Blast radius
100% of the dependent artifacts (1) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1 |
Most used dependents
- org.mvnpm » uploadthing1 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (2 packages) . See all on OSV
References
- Webhttps://github.com/Effect-TS/effect/security/advisories/GHSA-chp3-j5qr-2vfr
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-115779
- Webhttps://github.com/Effect-TS/effect/pull/6763
- Webhttps://github.com/Effect-TS/effect/pull/6765
- Webhttps://github.com/Effect-TS/effect/commit/4a57af24011db1d66e947289d2f7ffc2074696d2
- Webhttps://github.com/Effect-TS/effect/commit/5859b373b9be04d5037a594196b4743ad80379bd
- Packagehttps://github.com/Effect-TS/effect
- Webhttps://github.com/Effect-TS/effect/releases/tag/@effect/platform@0.97.1
- Webhttps://github.com/Effect-TS/effect/releases/tag/effect@4.0.0-beta.103
