# CVE-2026-22599: Strapi Vulnerable to SQL Injection in Content Type Builder

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Published: 2026-05-13T20:02:36.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-3xcq-8mjw-h6mx
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- strapi strapi: >= 5.0.0, < 5.33.2; >= 4.0.0, < 4.26.1; from 4.0.0 before 4.26.1; from 5.0.0 before 5.33.2
- strapi @strapi/content-type-builder: >= 5.0.0, < 5.33.2; >= 4.0.0, < 4.26.1
- @strapi/content-type-builder (npm): from 5.0.0 before 5.33.2
- @strapi/plugin-content-type-builder (npm): from 4.0.0 before 4.26.1

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx> (vendor-advisory, web)
- <https://github.com/strapi/strapi/releases/tag/v4.26.1> (patch, product, web)
- <https://github.com/strapi/strapi/releases/tag/v5.33.2> (patch, product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22599> (advisory)
- <https://github.com/strapi/strapi> (package)

## Sources

- CVE List: [CVE-2026-22599](https://www.cve.org/CVERecord?id=CVE-2026-22599), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-3xcq-8mjw-h6mx](https://github.com/advisories/GHSA-3xcq-8mjw-h6mx), CC-BY-4.0, modified 2026-05-16
- NVD: [CVE-2026-22599](https://nvd.nist.gov/vuln/detail/CVE-2026-22599), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-22599 · Whole record: https://cve.day/CVE-2026-22599.json · Rebuilt by cve.day 2026-11-25T22:59:21.742Z
