Strapi
Strapi Vulnerable to SQL Injection in Content Type Builder
Strapi is an open source headless content management system. In versions on the 4.x branch prior to 4.26.1 and on the 5.x branch prior to 5.33.2, a database-query injection vulnerability existed in the Strapi Content-Type Builder write API. An authenticated administrator could inject arbitrary database statements through the `column.defaultTo` attribute when creating or modifying a content type. Setting `defaultTo` as a tuple `[value, { isRaw: true }]` caused the value to be passed directly into Knex's `db.connection.raw()` during schema migration without sanitization, allowing arbitrary statement execution at the database layer. Depending on the database engine, this enabled arbitrary file read via database utility functions, denial of service via forced server crash on schema-migration error, and on engines that permit external program execution, remote code execution against the database server. The patch in versions 4.26.1 and 5.33.2 addresses this by restricting all Content-Type Builder write APIs to development mode only. Production deployments running v5.33.2 or later return 404 for requests against `/content-type-builder/content-types` and related endpoints, removing the network-reachable attack surface entirely.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.0.0, < 5.33.2
- >= 4.0.0, < 4.26.1
Fixed in 5.33.2, 4.26.1
- >= 5.0.0, < 5.33.2
- >= 4.0.0, < 4.26.1
Fixed in 5.33.2, 4.26.1
Mitigation
Upgrade strapi to 5.33.2 or 4.26.1 or later.
Upgrade @strapi/content-type-builder to 5.33.2 or 4.26.1 or later.
References
- Vendor advisory github.com/strapi/strapi/security/advisories/G…
- Release notes github.com/strapi/strapi/releases/tag/v4.26.1
- Release notes github.com/strapi/strapi/releases/tag/v5.33.2
Timeline
Days relative to CVE publicationFirst public PoC 134 days after publication; not in CISA KEV. First PoC: abraxas/CVE-2026-22599 (created 26 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| abraxas/CVE-2026-22599 | 26 Sep 2026 +134 d | 0 | 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 repoPOST /content-type-builder/content-types
- Key headers
Authorization: Bearer {var}- Content-Type
application/json- Ports
- 18098
- PoC User-Agent
body_markers_placeholder- Seen in
- 1 repo: abraxas/CVE-2026-22599
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/content-type-builder/content-types(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [18098] (msg:"GG PoC-Monitor CVE-2026-22599 strapi strapi exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/content-type-builder/content-types"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-22599; classtype:web-application-attack; sid:9018379; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: strapi strapi exploit attempt (CVE-2026-22599)
id: gg-pocmon-cve-2026-22599-9018379
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-22599. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-22599
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/content-type-builder/content-types'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.22599