# CVE-2025-66456: Elysia vulnerable to prototype pollution with multiple standalone schema validation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.18% (percentile 68, 2026-11-26)
- **CWE:** CWE-1321
- **Aliases:** GHSA-hxj9-33pp-j2cc
- **Published:** 2025-12-09T17:11:53.000Z
- **Modified:** 2026-10-14T21:10:00.183Z

## Who should check

- Projects that depend on npm package elysia (\>= 1.4.0, \< 1.4.17)
- Anyone running elysiajs elysia \>= 1.4.0, \< 1.4.17

## 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.

## Affected and fixed versions

- npm `elysia`: affected \>= 1.4.0, \< 1.4.17; fixed 1.4.17 (osv)
- elysiajs elysia: \>= 1.4.0, \< 1.4.17 (cvelist)

## Mitigation

- Upgrade elysia to 1.4.17 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-66456. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-66456.md
Affected: elysia >= 1.4.0, < 1.4.17
Fixed in: 1.4.17

Steps:
1. Search this machine and project for elysia (npm), elysiajs elysia: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-66456 being exploited?

There is no confirmed exploitation: CVE-2025-66456 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-66456?

Critical: CVSS 9.1 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-66456?

elysia \>= 1.4.0, \< 1.4.17.

### Is there a fix for CVE-2025-66456?

Yes. Fixed in 1.4.17. Upgrade elysia to 1.4.17 or later.

### How do I check if I'm affected by CVE-2025-66456?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc>
- vendor: <https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-66456>
- patch: <https://github.com/elysiajs/elysia/pull/1564>
- patch: <https://github.com/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e>
- patch: <https://github.com/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e>
- other: <https://github.com/elysiajs/elysia>
- other: <https://github.com/sportshead/elysia-poc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-66456>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hxj9-33pp-j2cc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-66456> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-66456>
