{"id":"CVE-2025-66456","published":"2025-12-09T19:43:10Z","modified":"2025-12-09T20:35:44Z","title":"Elysia vulnerable to prototype pollution with multiple standalone schema validation","vendor":"elysiajs","product":"elysia","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01184,"percentile":0.67653,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf","tags":["x_refsource_MISC"]},{"url":"https://github.com/elysiajs/elysia/pull/1564","tags":["x_refsource_MISC"]},{"url":"https://github.com/elysiajs/elysia/commit/26935bf76ebc43b4a43d48b173fc853de43bb51e","tags":["x_refsource_MISC"]},{"url":"https://github.com/elysiajs/elysia/commit/3af978663e437dccc6c1a2a3aff4b74e1574849e","tags":["x_refsource_MISC"]}],"priority":{"score":24.9,"factors":[{"name":"EPSS percentile","points":13.53},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"elysiajs","affectedVersions":[{"vendor":"elysiajs","product":"elysia","versions":[">= 1.4.0, < 1.4.17"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-12-09T20:11:35.267669Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"elysia","vulnerableRanges":[">=1.4.0, <1.4.17"],"patched":["1.4.17"],"from":["GHSA-hxj9-33pp-j2cc"],"provenance":"source"}],"summary":{"text":"Elysia, a TypeScript framework for request validation and client-server communication, has a prototype pollution flaw in its mergeDeep function that affects versions 1.4.0 through 1.4.16, triggered when results from two standard schema validations sharing the same key are merged. An unauthenticated remote attacker can exploit it over the network without user interaction by sending a request body containing a __proto__ key, provided an any-typed schema is set as a standalone guard so that the key is merged, and the flaw can be chained with GHSA-8vch-m3f4-q8jf to achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:08:26Z"},"euvd":{"id":"EUVD-2025-202180","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/sportshead/elysia-poc"],"lineage":{"familyId":"fam-elysiajs-elysia-cve-2025-66456","children":[{"from":"CVE-2025-66456","to":"CVE-2025-66457","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-8vch-m3f4-q8jf","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-hxj9-33pp-j2cc","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-8vch-m3f4-q8jf","via":"reference","url":"https://github.com/elysiajs/elysia/security/advisories/GHSA-hxj9-33pp-j2cc"},{"kind":"osv-related","provenance":"source","id":"GHSA-hxj9-33pp-j2cc","via":"reference","url":"https://github.com/elysiajs/elysia/security/advisories/GHSA-8vch-m3f4-q8jf"},{"kind":"version-step","provenance":"source","package":"npm:elysia","fromFixed":"1.4.17","toFixed":"1.4.18","daysApart":0}]}],"packageHistory":[{"cve":"CVE-2025-66456","published":"2025-12-09","fixed":"1.4.17","kev":false},{"cve":"CVE-2025-66457","published":"2025-12-09","fixed":"1.4.18","kev":false},{"cve":"CVE-2026-30837","published":"2026-03-10","fixed":"1.4.26","kev":false},{"cve":"CVE-2026-31865","published":"2026-03-18","fixed":"1.4.27","kev":false}],"package":"npm:elysia"}}