Skip to main content
VulnerabilityPublished

CVE-2026-31865: elysiajs elysia · Prototype Pollution

Affects elysiajs elysiaSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
elysiajselysiaAffected
  • <1.4.27
Fixed in
  • 1.4.27
npmelysiajs/elysiapkg:npm/elysiajs/elysiaOther threatsAffected
  • <1.4.27
Fixed in
  • 1.4.27

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Upgrade all Elysia framework instances to version 1.4.27 or later immediately to apply the official patch addressing prototype pollution.
  2. Implement strict validation on cookies using t.Cookie validation or equivalent mechanisms to enforce allowed values and prevent iterable or prototype property manipulation.
  3. 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.
  4. Employ runtime protections such as object freezing or sealing where feasible to prevent prototype pollution attacks.
  5. Conduct thorough security testing, including fuzzing and static analysis, focused on prototype pollution vectors in the application.
  6. Monitor application logs for unusual cookie or prototype-related activity that may indicate attempted exploitation.
  7. Educate developers on the risks of prototype pollution and secure coding practices in JavaScript/Typescript frameworks.
  8. 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.

References

Community reviews

Loading reviews…