CVE-2025-66456: Elysia Prototype Pollution Vulnerability Leading to RCE

elysia Updated 14 Dec 2025

Summary

09/12/2025
Yes i
Critical
9.1

CVE-2025-66456: Elysia vulnerable to prototype pollution with multiple standalone schema validation. Affects elysia versions >= 1.4.0, < 1.4.17. Fixed in 1.4.17. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Elysia is a web framework designed for building APIs and web applications in Node.js. It offers a range of features including schema validation, routing, and middleware support. However, it has been found to be vulnerable to a prototype pollution issue when multiple standalone schema validations are used, which can lead to severe security risks.

Vulnerability Detail

The vulnerability arises from the mergeDeep function, which merges results from two schema validations that share the same key. If an any type is set as a standalone guard, it allows the merging of the __proto__ property, leading to prototype pollution. This vulnerability can be exploited in routes that utilize more than two standalone schema validations, such as with the Zod library. When combined with another vulnerability (GHSA-8vch-m3f4-q8jf), it can lead to remote code execution (RCE) by an attacker.

How To Fix

Latest published version: 1.4.30 as of 23 Oct 2026

npm install elysia@1.4.30

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.17

This is the first release that contains the fix.

npm install elysia@1.4.17

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can remove the __proto__ key from the request body. Here is an example plugin that demonstrates how to do this:

new Elysia()
	.onTransform(({ body, headers }) => {
		if (headers['content-type'] === 'application/json')
			return JSON.parse(JSON.stringify(body), (k, v) => {
				if (k === '__proto__') return

				return v
			})
	})

Conclusion

The Elysia framework has a critical vulnerability (CVE-2025-66456) related to prototype pollution that can lead to remote code execution. It is crucial to update to the patched version (1.4.17) or implement the provided workaround to secure your application against potential attacks.

See every vulnerability recorded for elysia →

Share this vulnerability

FAQ

Prototype pollution is a security vulnerability that allows an attacker to manipulate an object's prototype, potentially leading to unauthorized access or control over the application.

An attacker can exploit this vulnerability by crafting a request that includes malicious payloads, allowing them to modify the prototype of objects in the application, which can lead to remote code execution.

If left unaddressed, this vulnerability can lead to severe security breaches, including unauthorized access to sensitive data and remote code execution, compromising the entire application.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground.

If immediate updates are not possible, implement the provided workaround to remove the __proto__ key from the request body to mitigate the risk until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for elysia.

How To Fix

Latest published version: 1.4.30 as of 23 Oct 2026

npm install elysia@1.4.30

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.17

This is the first release that contains the fix.

npm install elysia@1.4.17

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback