Skip to main content

Prototype Pollution CVE-2026-31865

| EUVDEUVD-2026-12749 MEDIUM
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-03-17 https://github.com/elysiajs/elysia GHSA-8hq9-phh3-p2wp
6.5
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A03:2021 - Injection
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS v3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) indicates a moderately exploitable vulnerability: the attack requires only network access, has low complexity, needs no privileges or user interaction, but impacts only the vulnerable process (not others) with limited confidentiality and integrity impact. The 6.5 CVSS score reflects this balanced profile. Real-world exploitation probability is elevated by the existence of a public proof-of-concept in the GitHub advisory and the straightforward attack mechanism (simple HTTP cookie injection). However, the impact is constrained: an attacker gains limited data leakage and can corrupt application state but cannot achieve code execution or denial of service. Organizations running Elysia in production should prioritize patching because the attack is trivially automatable and requires no authentication, but this is not a critical remote code execution vulnerability. The availability of a vendor patch (version 1.4.27) and documented workarounds (input validation, restricting cookie iteration) reduce the practical risk for patched or defended systems.

Exploit ScenarioDerived

An attacker crafts a malicious HTTP request to an Elysia-based web application with a specially-formed Cookie header: Cookie: __proto__={"injected":"polluted"} (or URL-encoded variants). When Elysia parses this cookie header without filtering special property names, the __proto__ key triggers prototype pollution, injecting the injected property into the JavaScript Object prototype. Subsequently, any code in the application that accesses object properties or iterates over objects may retrieve the polluted injected value, leading to unexpected behavior, information disclosure (if the application reflects cookie data), or logic bypass. Because the attack vector is network-accessible with low complexity and no authentication required, an unauthenticated attacker can trigger this repeatedly. Public proof-of-concept code is available in the GitHub advisory, making exploitation trivially automatable for attackers.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 17, 2026

Elysia (npm package, versions prior to 1.4.27) is vulnerable to prototype pollution through maliciously crafted cookie names, allowing unauthenticated attackers to override application cookie values and potentially inject arbitrary data into the application's object prototype. With a CVSS score of 6.5 and network-accessible attack vector requiring no privileges or user interaction, attackers can manipulate cookie handling to gain limited information disclosure and integrity compromise. A proof-of-concept exploit demonstrating the __proto__ injection vector exists in the GitHub advisory.

RemediationAI

Immediately upgrade Elysia to version 1.4.27 or later, which includes the patch committed at e9d6b1743fa7368ef942dce181f6a089757f6aab (visible in the GitHub advisory at https://github.com/elysiajs/elysia/security/advisories/GHSA-8hq9-phh3-p2wp). For applications unable to patch immediately, implement the following workarounds: (1) Apply strict validation to all cookie values using Elysia's t.Cookie validation schema to reject cookies with suspicious or unexpected structures, (2) minimize iteration over cookie objects in application code to reduce the window for prototype pollution exploitation, and (3) consider disabling or restricting cookie handling at the reverse proxy or WAF layer if feasible. Test patches in staging environments before production deployment to ensure compatibility with existing cookie-dependent application logic.

Affected VersionsENISA

elysia < 1.4.27

Affected Packages

npm elysia fix: 1.4.27

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Elysia is a popular Node.js web framework (CPE: pkg:npm/elysia) that handles HTTP cookie parsing and management. The vulnerability stems from CWE-1321 (Prototype Pollution), a class of code injection flaws where attacker-controlled input is merged into JavaScript objects without proper sanitization, allowing modification of the Object prototype itself. When Elysia processes incoming HTTP cookies, it fails to filter or validate special property names like __proto__, constructor, and prototype. An attacker sending a crafted cookie header with a name such as __proto__=%7B%22injected%22%3A%22polluted%22%7D (URL-encoded JSON) causes the cookie parsing logic to pollute the prototype chain, affecting all objects created subsequently in that application process. This is a server-side code injection vulnerability triggered through the HTTP Cookie header (CWE-1321 encompasses unsafe object merging patterns).

Know when Prototype Pollution gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch released
Mar 17, 2026 - 20:30 nvd
Patch available
CVE Published
Mar 17, 2026 - 16:17 nvd
MEDIUM 6.5

DescriptionGitHub Advisory

Impact

Elysia cookie can be overridden by prototype pollution , eg. __proto__

Sending cookie with the follows name can override cookie value:

bash
__proto__=%7B%22injected%22%3A%22polluted%22%7D

Patches

Patched by 1.4.27

Workarounds

  1. Use t.Cookie validation to enforce validation value
  2. Prevent iterable over cookie if possible

Executive ViewAI

Why It Matters

CVE-2026-31865 presents notable security risk, a prototype pollution vulnerability rated CVSS 6.5. Exploitation could compromise the security of affected deployments. A patch is available and should be applied during regular vulnerability management.

Business Impact: Moderate
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy