CVE-2025-66457CWE-94code-injection

CVE-2025-66457

High · published December 10, 2025

CVSS v3.1
8.8
EPSS
1%
Percentile
56.4
In the wild
Unconfirmed
What it is

⚡ A sneaky cookie config can lead to arbitrary code execution in Elysia versions 1.4.17 and below! 🍪💥 Think of it as a recipe where an unauthorized chef sneaks in an ingredient that alters the entire dish — the cookie config is like that secret ingredient added without checking for allergens. If it's bad, the whole meal turns toxic! An attacker with access to the cookie configuration can exploit this vulnerability to run arbitrary code on your server. This is especially concerning if the attack coincides with other exploits, potentially leading to a full remote code execution chain that could compromise your entire application. Imagine the chaos of someone hijacking your dinner party and rewriting the menu!

Put simply

Think of it as a recipe where an unauthorized chef sneaks in an ingredient that alters the entire dish — the cookie config is like that secret ingredient added without checking for allergens. If it's bad, the whole meal turns toxic! This vulnerability allows attackers to inject unverified cookie configurations into compiled routes, enabling them to execute arbitrary code if they have write access to the cookie settings. This flaw exists in Elysia versions up to 1.4.17 and is resolved in version 1.4.18.

What to do

An attacker with access to the cookie configuration can exploit this vulnerability to run arbitrary code on your server. This is especially concerning if the attack coincides with other exploits, potentially leading to a full remote code execution chain that could compromise your entire application. Imagine the chaos of someone hijacking your dinner party and rewriting the menu! To safeguard your application, upgrade to Elysia version 1.4.18 immediately. Review your cookie configurations to ensure they’re securely managed. Implement strict access controls to prevent unauthorized modifications to your app’s source code and configurations. You’ve got this! Follow these steps and your app will be as safe as a well-guarded secret recipe! 🛡️

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00807 · 56.4th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-12-10T01:15Z
Affected products (1)
ProductVersionsFixed in
elysiajs/elysia< 1.4.181.4.18
References (6)
EPSS history
Timeline
  • 09 DEC 20:03Z
    Elysia affected by arbitrary code injection through cookie config
    cvelistv5