CVE-2026-22599
Strapi Vulnerable to SQL Injection in Content Type Builder
Also known as GHSA-3xcq-8mjw-h6mx
Mitigation
- Upgrade @strapi/content-type-builder to 5.33.2 or later.
- Upgrade @strapi/plugin-content-type-builder to 4.26.1 or later.
Who should check
- Projects that depend on npm package @strapi/content-type-builder (>= 5.0.0, < 5.33.2)
- Projects that depend on npm package @strapi/plugin-content-type-builder (>= 4.0.0, < 4.26.1)
- Anyone running strapi >= 5.0.0, < 5.33.2; >= 4.0.0, < 4.26.1
- Anyone running @strapi/content-type-builder >= 5.0.0, < 5.33.2; >= 4.0.0, < 4.26.1
Vulnerability facts
- Affected
- @strapi/content-type-builder >= 5.0.0, < 5.33.2; @strapi/plugin-content-type-builder >= 4.0.0, < 4.26.1
- Fixed in
- 5.33.2, 4.26.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 9.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: High
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: None
- EPSS
- 1.37% chance of exploitation in 30 days (percentile 72, 2026-11-26)
- CWE
- CWE-89
- Modified
Description
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @strapi/content-type-builder | >= 5.0.0, < 5.33.2 | 5.33.2 | osv |
| npm @strapi/plugin-content-type-builder | >= 4.0.0, < 4.26.1 | 4.26.1 | osv |
| strapi | >= 5.0.0, < 5.33.2; >= 4.0.0, < 4.26.1 | — | cvelist |
| @strapi/content-type-builder | >= 5.0.0, < 5.33.2; >= 4.0.0, < 4.26.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-22599. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-22599.md Affected: @strapi/content-type-builder >= 5.0.0, < 5.33.2; @strapi/plugin-content-type-builder >= 4.0.0, < 4.26.1 Fixed in: 5.33.2, 4.26.1 Steps: 1. Search this machine and project for @strapi/content-type-builder (npm), @strapi/plugin-content-type-builder (npm), strapi, @strapi/content-type-builder: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-22599 being exploited?
There is no confirmed exploitation: CVE-2026-22599 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.37% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-22599?
Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-22599?
@strapi/content-type-builder >= 5.0.0, < 5.33.2; @strapi/plugin-content-type-builder >= 4.0.0, < 4.26.1.
Is there a fix for CVE-2026-22599?
Yes. Fixed in 5.33.2, 4.26.1. Upgrade @strapi/content-type-builder to 5.33.2 or later. Upgrade @strapi/plugin-content-type-builder to 4.26.1 or later.
How do I check if I'm affected by CVE-2026-22599?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.