CVE-2026-22599

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:strapi:strapi:*:*:*:*:*:node.js:*:*
cpe:2.3:a:strapi:strapi:*:*:*:*:*:node.js:*:*

History

16 May 2026, 03:25

Type Values Removed Values Added
CPE cpe:2.3:a:strapi:strapi:*:*:*:*:*:node.js:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.2
First Time Strapi
Strapi strapi
References () https://github.com/strapi/strapi/releases/tag/v4.26.1 - () https://github.com/strapi/strapi/releases/tag/v4.26.1 - Patch, Product
References () https://github.com/strapi/strapi/releases/tag/v5.33.2 - () https://github.com/strapi/strapi/releases/tag/v5.33.2 - Patch, Product
References () https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx - () https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx - Vendor Advisory

14 May 2026, 19:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-14 19:16

Updated : 2026-05-16 03:25


NVD link : CVE-2026-22599

Mitre link : CVE-2026-22599

CVE.ORG link : CVE-2026-22599


JSON object : View

Products Affected

strapi

  • strapi
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')