CVE-2026-31865
MEDIUM 5.3CVSS 3.1Elysia Cookie Value Prototype Pollution
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.
- Published
- 18 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1321
- Also known as
- GHSA-8hq9-phh3-p2wp
- Sources
- NVDJSONOSV GHSA-8hq9-phh3-p2wpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | elysiajs | elysiacpe:2.3:a:elysiajs:elysia:*:*:*:*:*:node.js:*:* |
< 1.4.27 | 1.4.27 |
| OSV | npm | elysia | < 1.4.27 | 1.4.27 |
References
- https://github.com/elysiajs/elysia/commit/e9d6b1743fa7368ef942dce181f6a089757f6aab · Patch, WEB
- https://github.com/elysiajs/elysia/security/advisories/GHSA-8hq9-phh3-p2wp · Mitigation, Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31865 · ADVISORY
- https://github.com/elysiajs/elysia · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 18 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 17 Mar 2026)