# CVE-2026-31865: Elysia Cookie Value Prototype Pollution

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-03-17T16:17:41.000Z
- Modified: 2026-06-17T10:34:39.547Z
- Also known as: GHSA-8hq9-phh3-p2wp
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- elysiajs elysia: < 1.4.27; before 1.4.27
- elysia (npm): before 1.4.27

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/elysiajs/elysia/security/advisories/GHSA-8hq9-phh3-p2wp> (mitigation, patch, vendor-advisory, web)
- <https://github.com/elysiajs/elysia/commit/e9d6b1743fa7368ef942dce181f6a089757f6aab> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31865> (advisory)
- <https://github.com/elysiajs/elysia> (package)

## Sources

- CVE List: [CVE-2026-31865](https://www.cve.org/CVERecord?id=CVE-2026-31865), CVE Terms of Use, modified 2026-03-18
- GitHub Advisory Database: [GHSA-8hq9-phh3-p2wp](https://github.com/advisories/GHSA-8hq9-phh3-p2wp), CC-BY-4.0, modified 2026-03-19
- NVD: [CVE-2026-31865](https://nvd.nist.gov/vuln/detail/CVE-2026-31865), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31865 · Whole record: https://cve.day/CVE-2026-31865.json · Rebuilt by cve.day 2026-11-25T22:59:16.083Z
