# CVE-2026-115779: Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()

- **Severity:** MEDIUM 6.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 44, 2026-11-28)
- **CWE:** CWE-20, CWE-74
- **Aliases:** GHSA-chp3-j5qr-2vfr
- **Published:** 2026-11-10T15:57:32.000Z
- **Modified:** 2026-11-10T15:57:33.000Z

## 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)

## 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

- npm `@effect/platform`: affected \>= 0.1.0, \< 0.97.1; fixed 0.97.1 (ghsa)
- npm `effect`: affected \>= 4.0.0-beta.0, \< 4.0.0-beta.103; fixed 4.0.0-beta.103 (ghsa)

## Technologies

npm packages

## Mitigation

- Upgrade @effect/platform to 0.97.1 or later.
- Upgrade effect to 4.0.0-beta.103 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/Effect-TS/effect/security/advisories/GHSA-chp3-j5qr-2vfr>
- patch: <https://github.com/Effect-TS/effect/pull/6763>
- patch: <https://github.com/Effect-TS/effect/pull/6765>
- patch: <https://github.com/Effect-TS/effect/commit/4a57af24011db1d66e947289d2f7ffc2074696d2>
- patch: <https://github.com/Effect-TS/effect/commit/5859b373b9be04d5037a594196b4743ad80379bd>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-115779>
- other: <https://github.com/Effect-TS/effect/releases/tag/@effect/platform@0.97.1>
- other: <https://github.com/Effect-TS/effect/releases/tag/effect@4.0.0-beta.103>
- other: <https://github.com/advisories/GHSA-chp3-j5qr-2vfr>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-chp3-j5qr-2vfr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-115779> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-115779>
