CVE-2026-22599 Details
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.
A database-query injection vulnerability has been identified in Strapi's Content-Type Builder write API. This issue affects Strapi versions 4.x prior to 4.26.1 and 5.x prior to 5.33.2. The vulnerability allows authenticated administrators to inject arbitrary database statements through the 'column.defaultTo' attribute while creating or modifying a content type. By setting 'defaultTo' as a tuple '[value, { isRaw: true }]', the injected value is passed directly into Knex's 'db.connection.raw()' during schema migration, bypassing sanitization. This exploitation could lead to arbitrary statement execution at the database level. Depending on the database engine, this vulnerability could be leveraged for arbitrary file reads using database utility functions, causing a denial-of-service by forcing a server crash during schema migration errors, or, on engines that allow external program execution, remote code execution on the database server.
Users are advised to update Strapi to version 5.33.2 or later for the 5.x branch, and to version 4.26.1 or later for the 4.x branch. After updating to version 5.33.2 or later, production deployments will return a 404 error for requests to the Content-Type Builder write API endpoints, removing the network-reachable attack surface. For version 4.26.1, similar restrictions apply, but users should verify the specific endpoint behavior after updating.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/strapi/strapi/releases/tag/v4.26.1 | [email protected] | PatchProduct |
| https://github.com/strapi/strapi/releases/tag/v5.33.2 | [email protected] | PatchProduct |
| https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| strapi strapi | >= 4.0.0, < 4.26.1 >= 5.0.0, < 5.33.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 16, 2026 | Initial Analysis | [email protected] |
| May 14, 2026 | New CVE Received | [email protected] |