ModerateVulnerabilityGHSA-8hq9-phh3-p2wpCVE-2026-31865Published 17 Mar 2026
Elysia Cookie Value Prototype Pollution
Your version
Affected releases · elysia
- 1.x1.0.0 – 1.4.26Fixed in 1.4.27
- 0.8.x and older0.1.0 – 0.8.17No fix, no longer updated
On 1.x, the newest line:
npm install elysia@1.4.27Every release on a timeline
1.x
Affected
1.0.0 – 1.4.26
130 releases
Fixed
1.4.27 – 1.4.30
4 releases, latest
0.x
Affected
0.1.0 – 0.8.17
132 releases
What happens
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%7D
Patches
Patched by 1.4.27
Workarounds
Use t.Cookie validation to enforce validation value
Prevent iterable over cookie if possible