CVE-2025-66457 json
Elysia affected by arbitrary code injection through cookie config
published 2025-12-09 11 mo ago modified 2026-10-14 25 d ago also GHSA-8vch-m3f4-q8jf , EUVD-2025-202179
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm elysia 1.4.18
- elysiajs elysia 1.4.18
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 10 mo ago
Exploit prediction
0.81% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/sportshead/elysia-poc referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.5 | 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 |
| CNA | 4.0 | 7.5 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | elysia | <1.4.18 |
1.4.18 |
Affected products
- elysiajs elysia
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/elysiajs/elysia/pull/1564
web, issue-tracking, patch
-
github.com
/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e
web, patch
-
github.com
/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e
web, patch
-
github.com
/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf
web, exploit, patch, vendor-advisory
-
github.com
/sportshead/elysia-poc
exploit, web, third-party-advisory
-
github.com
/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc
web, not-applicable
-
nvd.nist.gov
/vuln/detail/CVE-2025-66457
advisory
-
github.com
/elysiajs/elysia
package
Sources
- CVE List CVE-2025-66457
- GitHub Advisory GHSA-8vch-m3f4-q8jf
- NVD CVE-2025-66457
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.