Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. elysia
  4. ›
  5. CVE-2026-31865

CVE-2026-31865: Elysia Cookie Value Prototype Pollution

March 17, 2026 (updated March 19, 2026)

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

References

  • github.com/advisories/GHSA-8hq9-phh3-p2wp
  • github.com/elysiajs/elysia
  • github.com/elysiajs/elysia/commit/e9d6b1743fa7368ef942dce181f6a089757f6aab
  • github.com/elysiajs/elysia/security/advisories/GHSA-8hq9-phh3-p2wp
  • nvd.nist.gov/vuln/detail/CVE-2026-31865

Code Behaviors & Features

Detect and mitigate CVE-2026-31865 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.27

Fixed versions

  • 1.4.27

Solution

Upgrade to version 1.4.27 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/elysia/CVE-2026-31865.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:13 +0000.