PoC Monitor
← All CVEs
CVE-2025-66457published 9 Dec 2025 20:03 UTCData: JSON · API

Elysia

Elysia affected by arbitrary code injection through cookie config

Elysia is a Typescript framework for request validation, type inference, OpenAPI documentation and client-server communication. Versions 1.4.17 and below are subject to arbitrary code execution from cookie config. When dynamic cookies are enabled (e.g. there an existing cookie schema), the cookie config is injected into the compiled route without first being sanitised. Availability of this exploit is generally low, but when combined with GHSA-hxj9-33pp-j2cc, it allows for a full RCE chain. An attack requires write access to either the Elysia app's source code (in which case the vulnerability is meaningless) or write access to the cookie config (perhaps where it is assumed to be provisioned by the environment). This issue is fixed in version 1.4.18.

First public PoC Date pendingpublic PoC known, its date not yet looked up
Public PoCs11 on GitHub
CVSS8.8high · scored by NVD · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

elysiajs elysia
  • < 1.4.18

Fixed in 1.4.18

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published9 Dec 2025 · t = 0

Public PoC known, its date not yet looked up; not in CISA KEV.

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
sportshead/elysia-poc 28 Nov 2025 −11 d 0 PoC older repo: PoC date unknown, not used for the first PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

POST /

Body markers
"data": "messageId":"pollute-me" "__proto__": "foo":"bar" "cookie":{} "domain":" in application/json
Ports
3000
Seen in
1 repo: sportshead/elysia-poc
Evidence
sportshead/elysia-poc/README.md:44-54 sportshead/elysia-poc/proto-pollution.ts:11 sportshead/elysia-poc/README.md:81-92 sportshead/elysia-poc/rce.ts:11

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /cold-route
(?i)^/cold-route(?:[?#].*)?$
POST /
(?i)^/(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /cold-route
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2025-66457 elysiajs elysia exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cold-route"; reference:url,poc.griffinguard.io/cve/CVE-2025-66457; classtype:web-application-attack; sid:9265335; rev:1;)
POST /
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2025-66457 elysiajs elysia exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"|22|data|22|:"; http.request_body; content:"|22|messageId|22|:|22|pollute-me|22|"; http.request_body; content:"|22|__proto__|22|:"; http.request_body; content:"|22|foo|22|:|22|bar|22|"; http.request_body; content:"|22|cookie|22|:{}"; http.request_body; content:"|22|domain|22|:|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-66457; classtype:web-application-attack; sid:9866751; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /cold-route
title: elysiajs elysia exploit attempt (CVE-2025-66457)
id: gg-pocmon-cve-2025-66457-9265335
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-66457. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-66457
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/cold-route'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.66457
POST /
title: elysiajs elysia exploit attempt (CVE-2025-66457)
id: gg-pocmon-cve-2025-66457-9866751
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-66457. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2025-66457
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2025.66457