Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-66456: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in elysiajs elysia

0
Critical
VulnerabilityCVE-2025-66456cvecve-2025-66456cwe-1321
Published: Tue Dec 09 2025 (12/09/2025, 19:43:10 UTC)
Source: CVE Database V5
Vendor/Project: elysiajs
Product: elysia

Description

Elysia is a Typescript framework for request validation, type inference, OpenAPI documentation and client-server communication. Versions 1.4.0 through 1.4.16 contain a prototype pollution vulnerability in `mergeDeep` after merging results of two standard schema validations with the same key. Due to the ordering of merging, there must be an any type that is set as a standalone guard, to allow for the `__proto__ prop` to be merged. When combined with GHSA-8vch-m3f4-q8jf this allows for a full RCE by an attacker. This issue is fixed in version 1.4.17. To workaround, remove the `__proto__ key` from body.

AI-Powered Analysis

AILast updated: 12/09/2025, 20:07:22 UTC

Technical Analysis

CVE-2025-66456 is a prototype pollution vulnerability identified in the elysia Typescript framework, specifically affecting versions 1.4.0 through 1.4.16. The vulnerability exists in the mergeDeep function, which merges the results of two standard schema validations that share the same key. Due to the order in which merging occurs and the presence of an 'any' type used as a standalone guard, the __proto__ property can be maliciously injected and merged into the object prototype. Prototype pollution allows attackers to manipulate the prototype chain of JavaScript objects, potentially altering application behavior or enabling further attacks. When this vulnerability is chained with GHSA-8vch-m3f4-q8jf, it enables an attacker to achieve full remote code execution (RCE) on the affected system without requiring authentication or user interaction. The vulnerability is remotely exploitable over the network (AV:N), requires low attack complexity (AC:L), and does not require privileges (PR:N) or user interaction (UI:N). The vulnerability impacts confidentiality and integrity highly, with no impact on availability. The issue was publicly disclosed on December 9, 2025, and fixed in elysia version 1.4.17. Until patched, a workaround involves sanitizing incoming request bodies to remove the __proto__ key to prevent prototype pollution. No known exploits are currently in the wild, but the critical CVSS score and potential for RCE make this a high-priority issue.

Potential Impact

For European organizations, this vulnerability poses a significant risk, especially those developing or deploying web applications using the elysia framework for request validation, type inference, and API communication. Successful exploitation can lead to full remote code execution, allowing attackers to execute arbitrary code, potentially leading to data breaches, system compromise, lateral movement, and disruption of services. Organizations handling sensitive data, such as financial institutions, healthcare providers, and government agencies, face heightened risks of confidentiality and integrity breaches. The vulnerability's ease of exploitation without authentication or user interaction increases the threat landscape. Additionally, supply chain risks exist if third-party services or libraries incorporate vulnerable elysia versions. The potential for widespread impact is amplified by the framework's use in modern Typescript-based applications common across Europe. Failure to patch or mitigate promptly could result in significant operational and reputational damage.

Mitigation Recommendations

1. Immediate upgrade to elysia version 1.4.17 or later, which contains the fix for this vulnerability. 2. Implement input validation and sanitization to explicitly remove or reject any __proto__ keys in incoming JSON or request bodies to prevent prototype pollution. 3. Employ runtime application self-protection (RASP) or Web Application Firewalls (WAF) with custom rules to detect and block payloads attempting to exploit prototype pollution. 4. Conduct code audits and dependency scans to identify usage of vulnerable elysia versions across all projects and third-party dependencies. 5. Monitor application logs and network traffic for unusual behavior indicative of exploitation attempts, especially those involving prototype manipulation patterns. 6. Educate development teams on secure coding practices related to object merging and prototype pollution risks. 7. Establish incident response plans specifically addressing potential RCE scenarios stemming from this vulnerability. 8. Coordinate with supply chain partners to ensure they have remediated the vulnerability in their software stacks.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-12-01T22:51:54.580Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69387e02f4a79be77cc30993

Added to database: 12/9/2025, 7:52:34 PM

Last enriched: 12/9/2025, 8:07:22 PM

Last updated: 12/11/2025, 6:59:56 AM

Views: 63

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats