Elysia vulnerable to prototype pollution with multiple standalone schema validation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| elysiajs | elysia | 1.4.0 to before 1.4.17 | 1.4.17 | Patch available | CNA |
| — | elysia (npm) | 1.4.0 to before 1.4.17 | 1.4.17 | Patch available | GHSA-hxj9-33pp-j2cc |
- elysia Vendorelysiajs Affected 1.4.0 to before 1.4.17 Fixed in 1.4.17 Patch available CNA
- elysia (npm) Vendor— Affected 1.4.0 to before 1.4.17 Fixed in 1.4.17 Patch available GHSA-hxj9-33pp-j2cc
Remediation
- Fix · CNA elysia (elysiajs) Fixed in 1.4.17
- Fix · GHSA-hxj9-33pp-j2cc elysia (npm) Fixed in 1.4.17 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-66456
- 2026-10-03 Alias added: GHSA-hxj9-33pp-j2cc
References
Patch 3
More elysiajs Elysia vulnerabilities
- TI-2025-40889 Elysia affected by arbitrary code injection through cookie config CVSS 4.0HIGH 7.5
- TI-2026-23666 Elysia has a string URL format redos CVSS 3.1HIGH 7.5
- TI-2026-24417 Elysia Cookie Value Prototype Pollution CVSS 3.1MEDIUM 6.5
Sources
- CVE-2025-66456 · CVE Program
- CVE-2025-66456 · NVD
- FIRST EPSS
- GHSA-hxj9-33pp-j2cc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences