CVE-2026-31865: elysiajs elysia · Prototype Pollution
Affects elysiajs elysiaSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium : upgrade to 1.4.27 when convenient.
Data as of 31 Oct 2026, 08:20 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.27
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 18 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade elysia and elysiajs/elysia to 1.4.27.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| elysiajselysia | Affected
| Fixed in
|
npmelysiajs/elysiapkg:npm/elysiajs/elysiaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade all Elysia framework instances to version 1.4.27 or later immediately to apply the official patch addressing prototype pollution.
- Implement strict validation on cookies using t.Cookie validation or equivalent mechanisms to enforce allowed values and prevent iterable or prototype property manipulation.
- Review application code for any direct or indirect use of __proto__ or other prototype properties in cookie handling or request processing and refactor to avoid unsafe prototype modifications.
- Employ runtime protections such as object freezing or sealing where feasible to prevent prototype pollution attacks.
- Conduct thorough security testing, including fuzzing and static analysis, focused on prototype pollution vectors in the application.
- Monitor application logs for unusual cookie or prototype-related activity that may indicate attempted exploitation.
- Educate developers on the risks of prototype pollution and secure coding practices in JavaScript/Typescript frameworks.
- Consider implementing Content Security Policy (CSP) and other web security headers to reduce attack surface. These steps combined will reduce the risk of exploitation and limit the impact if an attack occurs.
Description
Elysia is a Typescript framework for request validation, type inference, OpenAPI documentation, and client-server communication. Prior to version 1.4.27, an Elysia cookie can be overridden by prototype pollution , eg. `__proto__`. This issue is patched in 1.4.27. As a workaround, use t.Cookie validation to enforce validation value and/or prevent iterable over cookie if possible.