CVE-2025-66457: Elysia affected by arbitrary code injection through cookie config
Affects elysiaSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 1.4.18 soon.
Data as of 27 Nov 2026, 05:09 UTC
- Patch
- Available – fixed in 1.4.18
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade elysia to 1.4.18.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmelysia | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Elysia to version 1.4.18 or later, where this vulnerability is patched. As a workaround, sanitize any cookie-related environment input before use, for example by escaping single quotes and template literals in cookie config values. No other vendor advisories indicate additional mitigations or that no action is required.
Description
CVE-2025-66457 is a high-severity vulnerability in Elysia versions prior to 1.4.18 that allows arbitrary code execution via unsanitized cookie configuration injection. This occurs when dynamic cookies are enabled and the cookie config is injected into compiled routes without proper sanitization. Exploitation requires write access to the cookie config or source code, limiting availability. The vulnerability is patched in version 1.4.18.
References
- github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf (opens in a new tab)
- github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-66457 (opens in a new tab)
- github.com/elysiajs/elysia/pull/1564 (opens in a new tab)
- github.com/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e (opens in a new tab)
- github.com/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e (opens in a new tab)
- github.com/elysiajs/elysia (opens in a new tab)
- github.com/sportshead/elysia-poc (opens in a new tab)