CVE-2026-31865Elysiajs Elysia
Medium 5.3 No auth needed
Follow: this CVE · Elysiajs · Elysiajs Elysia We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Mar 18, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Elysia.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | elysia |
< 1.4.27 |
1.4.27 |
npm install elysia@1.4.27 |
Per OSV / GitHub Advisories (GHSA-8hq9-phh3-p2wp). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| elysiajs | elysia | < 1.4.27 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Mitigation Patch Vendor Advisory