{"id":"CVE-2026-31865","aliases":["CVE-2026-31865","GHSA-8hq9-phh3-p2wp"],"related":[],"kind":"vulnerability","state":"published","title":"Elysia Cookie Value Prototype Pollution","summary":"Elysia is a Typescript framework for request validation, type inference, OpenAPI documentation, and client-server communication. Prior to version 1.4.27, an Elysia cookie can be overridden by prototype pollution , eg. `__proto__`. This issue is patched in 1.4.27. As a workaround, use t.Cookie validation to enforce validation value and/or prevent iterable over cookie if possible.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Elysia is a Typescript framework for request validation, type inference, OpenAPI documentation, and client-server communication. Prior to version 1.4.27, an Elysia cookie can be overridden by prototype pollution , eg. `__proto__`. This issue is patched in 1.4.27. As a workaround, use t.Cookie validation to enforce validation value and/or prevent iterable over cookie if possible.","source":"cvelist"},{"lang":"en","text":"### Impact\nElysia cookie can be overridden by prototype pollution , eg. `__proto__`\n\nSending cookie with the follows name can override cookie value:\n```bash\n__proto__=%7B%22injected%22%3A%22polluted%22%7D\n```\n\n### Patches\nPatched by 1.4.27\n\n### Workarounds\n1. Use t.Cookie validation to enforce validation value\n2. Prevent iterable over cookie if possible","format":"markdown","source":"ghsa"},{"lang":"es","text":"Elysia es un framework de Typescript para la validación de solicitudes, inferencia de tipos, documentación OpenAPI y comunicación cliente-servidor. Antes de la versión 1.4.27, una cookie de Elysia podía ser sobrescrita mediante contaminación de prototipos, p. ej. `__proto__`. Este problema está parcheado en la versión 1.4.27. Como solución alternativa, use la validación t.Cookie para forzar el valor de validación y/o evitar la iteración sobre la cookie si es posible.","source":"nvd"}],"published":"2026-03-17T16:17:41.000Z","modified":"2026-06-17T10:34:39.547Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 1.4.27","status":"affected"}],"vendor":"elysiajs","product":"elysia","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.27"}],"ecosystem":"npm","package":"elysia","purl":"pkg:npm/elysia","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.4.27"}],"vendor":"elysiajs","product":"elysia","cpe":"cpe:2.3:a:elysiajs:elysia:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/elysiajs/elysia/security/advisories/GHSA-8hq9-phh3-p2wp","tags":["mitigation","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elysiajs/elysia/commit/e9d6b1743fa7368ef942dce181f6a089757f6aab","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31865","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/elysiajs/elysia","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-03-18T18:36:47.933Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31865","url":"https://www.cve.org/CVERecord?id=CVE-2026-31865","licence":"CVE Terms of Use","modified":"2026-03-18T18:39:09.024Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8hq9-phh3-p2wp","url":"https://github.com/advisories/GHSA-8hq9-phh3-p2wp","licence":"CC-BY-4.0","modified":"2026-03-19T19:17:47.117Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31865","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31865","licence":"Public domain","modified":"2026-06-17T10:34:39.547Z"}],"updatedAt":"2026-11-25T22:59:16.083Z","epss":{"score":0.00267,"percentile":0.20133,"date":"2026-12-01T12:00:22.000Z"}}