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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.4.18
Fixed in 1.4.18
Mitigation
Upgrade elysia to 1.4.18 or later.
References
- Vendor advisory github.com/elysiajs/elysia/security/advisories…
- Vendor advisory github.com/elysiajs/elysia/security/advisories…
- Patch github.com/elysiajs/elysia/pull/1564
Timeline
Days relative to CVE publicationPublic PoC known, its date not yet looked up; not in CISA KEV.
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 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 repoGET /cold-route
- Ports
- 3000
- Seen in
- 1 repo: sportshead/elysia-poc
- Evidence
- sportshead/elysia-poc/README.md:96 sportshead/elysia-poc/rce.ts:18
POST /
- Body markers
"data":"messageId":"pollute-me""__proto__":"foo":"bar""cookie":{}"domain":"inapplication/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.
(?i)^/cold-route(?:[?#].*)?$
(?i)^/(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
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;)
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.
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
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