Mikro-orm
MikroORM is vulnerable to SQL Injection via specially crafted object
MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to versions 6.6.10 and 7.0.6, there is a SQL injection vulnerability when specially crafted objects are interpreted as raw SQL query fragments. This issue has been patched in versions 6.6.10 and 7.0.6.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 6.6.10
- >= 7.0.0-rc.0, < 7.0.6
Fixed in 6.6.10, 7.0.6
Mitigation
Upgrade mikro-orm to 6.6.10 or 7.0.6 or later.
References
- Vendor advisory github.com/mikro-orm/mikro-orm/security/adviso…
Timeline
Days relative to CVE publicationFirst public PoC 27 days after publication; not in CISA KEV. First PoC: EQSTLab/CVE-2026-34220 (created 27 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| EQSTLab/CVE-2026-34220 | 27 Apr 2026 +27 d | 1 | PoC |
| yym8538/CVE-2026-34220 | 21 Aug 2026 +143 d | 1 | 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 2 PoC reposPOST /api/posts
- Content-Type
application/json- Ports
- 3000
- Seen in
- 2 repos: EQSTLab/CVE-2026-34220, yym8538/CVE-2026-34220
- Evidence
- EQSTLab/CVE-2026-34220/app.js:222 yym8538/CVE-2026-34220/app.js:222
POST /write
- Content-Type
application/json- Ports
- 3000
- Seen in
- 2 repos: EQSTLab/CVE-2026-34220, yym8538/CVE-2026-34220
- Evidence
- EQSTLab/CVE-2026-34220/README.md:43 yym8538/CVE-2026-34220/README.md:43
PUT /api/posts/{var}
- Content-Type
application/json- Ports
- 3000
- Seen in
- 2 repos: EQSTLab/CVE-2026-34220, yym8538/CVE-2026-34220
- Evidence
- EQSTLab/CVE-2026-34220/app.js:285 yym8538/CVE-2026-34220/app.js:285
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/posts(?:[?#].*)?$
(?i)^/write(?:[?#].*)?$
(?i)^/api/posts/[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-34220 mikro-orm mikro-orm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/posts"; reference:url,poc.griffinguard.io/cve/CVE-2026-34220; classtype:web-application-attack; sid:9209081; rev:1;)
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-34220 mikro-orm mikro-orm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/write"; reference:url,poc.griffinguard.io/cve/CVE-2026-34220; classtype:web-application-attack; sid:9335954; rev:1;)
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-34220 mikro-orm mikro-orm exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/api/posts/"; reference:url,poc.griffinguard.io/cve/CVE-2026-34220; classtype:web-application-attack; sid:9892586; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: mikro-orm mikro-orm exploit attempt (CVE-2026-34220)
id: gg-pocmon-cve-2026-34220-9209081
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-34220. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-34220
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/posts'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.34220
title: mikro-orm mikro-orm exploit attempt (CVE-2026-34220)
id: gg-pocmon-cve-2026-34220-9335954
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-34220. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-34220
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/write'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.34220
title: mikro-orm mikro-orm exploit attempt (CVE-2026-34220)
id: gg-pocmon-cve-2026-34220-9892586
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-34220. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-34220
logsource:
category: webserver
detection:
selection:
cs-method: PUT
cs-uri-stem|contains|all:
- '/api/posts/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.34220