CVE-2026-31865: Elysia Cookie Value Prototype Pollution
Impact Elysia cookie can be overridden by prototype pollution , eg. proto Sending cookie with the follows name can override cookie value: Patches Patched by 1.4.27 Workarounds 1. Use t.Cookie validation to enforce validation value 2. Prevent iterable over cookie if possible
Published Mar 17, 2026 · Updated Mar 22, 2026
Affected packages
elysia
- Ecosystem
- npm
- Affected
- < 1.4.27
- Fixed in
- 1.4.27
- Check
npm ls elysia
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Elysia cookie can be overridden by prototype pollution , eg. __proto__
Sending cookie with the follows name can override cookie value:
__proto__=%7B%22injected%22%3A%22polluted%22%7DPatches
Patched by 1.4.27
Workarounds
- Use t.Cookie validation to enforce validation value
- Prevent iterable over cookie if possible
Credited to ebadfd.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-56669
elysia has Inefficient Algorithmic Complexity and Interpretation Conflict
high7.5Sep 23, 2026CVE-2026-30837
Elysia has a string URL format ReDoS
high7.5Mar 10, 2026CVE-2025-66456
Elysia vulnerable to prototype pollution with multiple standalone schema validation
critical9.1Dec 9, 2025CVE-2025-66457
Elysia affected by arbitrary code injection through cookie config
high7.5Dec 9, 2025
