# CVE-2025-66457: Elysia affected by arbitrary code injection through cookie config

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA: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.86%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-12-09T17:12:05.000Z
- Modified: 2026-10-14T21:10:00.183Z
- Also known as: GHSA-8vch-m3f4-q8jf
- Related: CVE-2025-66456
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Elysia is a Typescript framework for request validation, type inference, OpenAPI documentation and client-server communication. Versions 1.4.17 and below are subject to arbitrary code execution from cookie config. When dynamic cookies are enabled (e.g. there  an existing cookie schema), the cookie config is injected into the compiled route without first being sanitised. Availability of this exploit is generally low, but when combined with GHSA-hxj9-33pp-j2cc, it allows for a full RCE chain. An attack requires write access to either the Elysia app's source code (in which case the vulnerability is meaningless) or write access to the cookie config (perhaps where it is assumed to be provisioned by the environment). This issue is fixed in version 1.4.18.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 7.5 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf> (exploit, patch, vendor-advisory, web)
- <https://github.com/sportshead/elysia-poc> (exploit, third-party-advisory, web)
- <https://github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc> (not-applicable, web)
- <https://github.com/elysiajs/elysia/pull/1564> (issue-tracking, patch, web)
- <https://github.com/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e> (patch, web)
- <https://github.com/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66457> (advisory)
- <https://github.com/elysiajs/elysia> (package)

## Sources

- CVE List: [CVE-2025-66457](https://www.cve.org/CVERecord?id=CVE-2025-66457), CVE Terms of Use, modified 2025-12-12
- GitHub Advisory Database: [GHSA-8vch-m3f4-q8jf](https://github.com/advisories/GHSA-8vch-m3f4-q8jf), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-66457](https://nvd.nist.gov/vuln/detail/CVE-2025-66457), Public domain, modified 2026-10-14

---

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