{"id":"CVE-2026-115779","aliases":["CVE-2026-115779","GHSA-chp3-j5qr-2vfr"],"related":[],"kind":"vulnerability","state":"published","title":"Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe `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.\n\nFor 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.\n\nThe `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.\n\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nDo not pass user input into `name`, `domain`, or `path`; set them from application constants.","format":"markdown","source":"ghsa"}],"published":"2026-11-03T20:40:19.864Z","modified":"2026-11-12T20:04:52.377Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-20","CWE-74"],"affected":[{"ranges":[{"version":">= 4.0.0-beta.0, < 4.0.0-beta.103","status":"affected"}],"vendor":"Effect-TS","product":"effect","source":"cvelist"},{"ranges":[{"version":">= 0.1.0, < 0.97.1","status":"affected"}],"vendor":"@effect","product":"platform","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.97.1"}],"ecosystem":"npm","package":"@effect/platform","purl":"pkg:npm/%40effect/platform","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0-beta.0","status":"affected","fixed":"4.0.0-beta.103"}],"ecosystem":"npm","package":"effect","purl":"pkg:npm/effect","source":"ghsa"}],"references":[{"url":"https://github.com/Effect-TS/effect/security/advisories/GHSA-chp3-j5qr-2vfr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Effect-TS/effect/pull/6763","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Effect-TS/effect/pull/6765","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Effect-TS/effect/commit/4a57af24011db1d66e947289d2f7ffc2074696d2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Effect-TS/effect/commit/5859b373b9be04d5037a594196b4743ad80379bd","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Effect-TS/effect/releases/tag/@effect/platform@0.97.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Effect-TS/effect/releases/tag/effect@4.0.0-beta.103","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115779","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Effect-TS/effect","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-03T21:26:42.883Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-115779","url":"https://www.cve.org/CVERecord?id=CVE-2026-115779","licence":"CVE Terms of Use","modified":"2026-11-03T21:26:55.431Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-chp3-j5qr-2vfr","url":"https://github.com/advisories/GHSA-chp3-j5qr-2vfr","licence":"CC-BY-4.0","modified":"2026-11-10T16:15:04.155Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-115779","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115779","licence":"Public domain","modified":"2026-11-12T20:04:52.377Z"}],"updatedAt":"2026-11-25T22:59:48.860Z","epss":{"score":0.00627,"percentile":0.51401,"date":"2026-12-01T12:00:22.000Z"}}