CVE-2025-66457 Details
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.
A vulnerability allowing arbitrary code execution has been identified in the Elysia TypeScript framework, specifically in versions prior to 1.4.18. The issue arises from the framework's handling of cookie configurations. When dynamic cookies are enabled, the cookie configuration is injected into the compiled route without proper sanitization. This vulnerability requires write access to the Elysia application's source code or to the cookie configuration, which may be assumed to be provided by the environment. However, when combined with a related vulnerability, GHSA-hxj9-33pp-j2cc, it creates a complete remote code execution exploit chain.
Users can update to Elysia version 1.4.18 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/sportshead/elysia-poc | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e | [email protected] | Patch |
| https://github.com/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e | [email protected] | Patch |
| https://github.com/elysiajs/elysia/pull/1564 | [email protected] | Issue TrackingPatch |
| https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf | [email protected] | ExploitPatchVendor Advisory |
| https://github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc | [email protected] | Not Applicable |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| elysiajs elysia | < 1.4.18 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 17, 2025 | Initial Analysis | [email protected] |
| Dec 12, 2025 | CVE Modified | CISA-ADP |
| Dec 9, 2025 | New CVE Received | [email protected] |