Elysia Cookie Value Prototype Pollution
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| elysiajs | elysia | before 1.4.27 | 1.4.27 | Patch available | CNA |
| — | elysia (npm) | before 1.4.27 | 1.4.27 | Patch available | GHSA-8hq9-phh3-p2wp |
- elysia Vendorelysiajs Affected before 1.4.27 Fixed in 1.4.27 Patch available CNA
- elysia (npm) Vendor— Affected before 1.4.27 Fixed in 1.4.27 Patch available GHSA-8hq9-phh3-p2wp
Remediation
- Fix · CNA elysia (elysiajs) Fixed in 1.4.27
- Fix · GHSA-8hq9-phh3-p2wp elysia (npm) Fixed in 1.4.27 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-31865
- 2026-10-03 Alias added: GHSA-8hq9-phh3-p2wp
References
More elysiajs Elysia vulnerabilities
- TI-2025-40888 Elysia vulnerable to prototype pollution with multiple standalone schema validation CVSS 4.0CRITICAL 9.1
- TI-2025-40889 Elysia affected by arbitrary code injection through cookie config CVSS 4.0HIGH 7.5
- TI-2026-23666 Elysia has a string URL format redos CVSS 3.1HIGH 7.5
Sources
- CVE-2026-31865 · CVE Program
- CVE-2026-31865 · NVD
- FIRST EPSS
- GHSA-8hq9-phh3-p2wp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences