CVE-2026-31865: Elysia Cookie Value Prototype Pollution

Published Mar 17, 2026
·
Updated

Impact Elysia cookie can be overridden by prototype pollution , eg. proto

Sending cookie with the follows name can override cookie value: bash proto=%7B%22injected%22%3A%22polluted%22%7D

Patches Patched by 1.4.27

Workarounds 1. Use t.Cookie validation to enforce validation value 2. Prevent iterable over cookie if possible

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/elysia<1.4.27
1.4.27
elysiajs Elysia Node.js<1.4.27

Event History

Mar 17, 2026
Advisory Published
via GitHub·04:17 PM
Data Sourced
via GitHub·04:17 PM
DescriptionSeverityWeaknessAffected Software
Mar 18, 2026
CVE Published
via MITRE·02:50 AM
Data Sourced
via MITRE·02:50 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 AM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-31865?

CVE-2026-31865 has a moderate severity due to potential risks of prototype pollution.

2

How do I fix CVE-2026-31865?

To fix CVE-2026-31865, update the Elysia package to version 1.4.27 or later.

3

What is prototype pollution in the context of CVE-2026-31865?

Prototype pollution refers to the ability to manipulate an object's prototype, potentially allowing attackers to modify properties of objects in an application.

4

Which versions of Elysia are affected by CVE-2026-31865?

Versions of Elysia prior to 1.4.27 are affected by CVE-2026-31865.

5

What are the workarounds for CVE-2026-31865?

Implementing cookie validation can serve as a workaround until you can upgrade to a patched version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203