{"id":"CVE-2026-22599","revision":null,"records":[{"revision":"d91cbce506a54e299883fd44230e4d4d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-22599","aliases":[],"title":"Strapi Vulnerable to SQL Injection in Content Type Builder","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.","state":0,"publishedAt":"2026-05-14T18:35:57.661+00:00","modifiedAt":"2026-05-14T19:45:29.894+00:00","affected":[{"ecosystem":"Vendor product","name":"strapi","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"strapi\",\n                    \"product\": \"strapi\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 5.0.0, < 5.33.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 4.0.0, < 4.26.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"@strapi/content-type-builder","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"strapi\",\n                    \"product\": \"@strapi/content-type-builder\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 5.0.0, < 5.33.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 4.0.0, < 4.26.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":9.3,"severity":"CRITICAL"}],"references":["https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx","https://github.com/strapi/strapi/releases/tag/v4.26.1","https://github.com/strapi/strapi/releases/tag/v5.33.2"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-22599","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-22599","identifiers":["CVE-2026-22599"]},"retained":false,"historicalAffected":[]},{"revision":"8e0e553f09ab4ad7af532d6f4aabc754","observedAt":"2026-10-28T02:03:00.73+00:00","statement":{"source":"euvd","id":"EUVD-2026-30352","aliases":["CVE-2026-22599","GHSA-3xcq-8mjw-h6mx"],"title":"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.…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"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","score":9.3,"severity":null}],"references":["https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx","https://github.com/strapi/strapi/releases/tag/v4.26.1","https://github.com/strapi/strapi/releases/tag/v5.33.2"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30352","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 14, 2026, 6:35:57 PM","dateUpdated":"May 14, 2026, 7:45:29 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-30352","identifiers":["EUVD-2026-30352","CVE-2026-22599","GHSA-3xcq-8mjw-h6mx"]},"retained":false,"historicalAffected":[]},{"revision":"e8759fdc0ac948dcb6e0c5cf9f43d205","observedAt":"2026-10-27T06:23:31.154+00:00","statement":{"source":"nvd","id":"CVE-2026-22599","aliases":[],"title":"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.…","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.","state":0,"publishedAt":"2026-05-14T19:16:29.65+00:00","modifiedAt":"2026-10-26T14:10:00.13+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":9.3,"severity":"CRITICAL"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"severity":"HIGH"}],"references":["https://github.com/strapi/strapi/releases/tag/v4.26.1","https://github.com/strapi/strapi/releases/tag/v5.33.2","https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-22599","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-89"],"productCriteria":["cpe:2.3:a:strapi:strapi:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-05-14T19:16:29.650","lastModified":"2026-10-26T14:10:00.130"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-22599","identifiers":["CVE-2026-22599"]},"retained":false,"historicalAffected":[]},{"revision":"05fb39bee0e64035afba1c5c5eb9ceac","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-3xcq-8mjw-h6mx","aliases":["CVE-2026-22599"],"title":"Strapi Vulnerable to SQL Injection in Content Type Builder","description":"### Summary of CVE-2026-22599 Vulnerability Details\n\n- CVE: CVE-2026-22599\n- CVSS v3.1 Vector: `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` (9.3 — Critical)\n- Affected Versions: `@strapi/content-type-builder` <=5.33.1 (v5), `@strapi/plugin-content-type-builder` <=4.26.0 (v4)\n- How to Patch: Immediately update your Strapi to >=5.33.2 (v5) or >=4.26.1 (v4)\n\n### Description of CVE-2026-22599\n\nA 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.\n\nThe patch 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.\n\n### IoC's for CVE-2026-22599\n\nIndicators that an instance running an unpatched version may have been exploited:\n\n- HTTP access logs containing POST or PUT requests to `/content-type-builder/content-types` from a non-internal source. Regex pattern: `(POST|PUT)\\s+/content-type-builder/`\n- Database server logs containing unexpected DEFAULT clause values that reference filesystem-access or program-execution helper functions of your database engine\n- Strapi server crashes immediately following a content-type creation or update, observed as the Node process exiting during the schema-migration step\n- Files appearing under unexpected paths on the database host that match content-type DEFAULT values from the application\n- Newly-created content-types named or shaped to extract specific data (attribute names like `passwd`, `etc`, `env`, `config`)","state":0,"publishedAt":"2026-05-13T20:02:36+00:00","modifiedAt":"2026-05-16T00:09:03.616088+00:00","affected":[{"ecosystem":"npm","name":"@strapi/content-type-builder","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.0.0"},{"kind":"fixed","version":"5.33.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@strapi/plugin-content-type-builder","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0"},{"kind":"fixed","version":"4.26.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/strapi/strapi/security/advisories/GHSA-3xcq-8mjw-h6mx","https://nvd.nist.gov/vuln/detail/CVE-2026-22599","https://github.com/strapi/strapi","https://github.com/strapi/strapi/releases/tag/v4.26.1","https://github.com/strapi/strapi/releases/tag/v5.33.2"],"sourceUrl":"https://github.com/advisories/GHSA-3xcq-8mjw-h6mx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3xcq-8mjw-h6mx","identifiers":["GHSA-3xcq-8mjw-h6mx","CVE-2026-22599"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-28T08:06:21.3224229+00:00","complete":true,"records":1760,"lastAttemptAt":"2026-10-28T08:06:21.3224229+00:00","lastSuccessAt":"2026-10-28T08:06:21.4738044+00:00","error":null,"lastVerifiedAt":"2026-10-28T08:06:21.473805+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d2186f400c54d65f61687f78bb1a00d184d2e215877d0194d7ed70caee809a44-d3e81f89111bb0d33cac14dd0db97453c7217c57124333cc944f6fba75122549","complete":true,"records":415603,"lastAttemptAt":"2026-10-28T08:06:20.8316261+00:00","lastSuccessAt":"2026-10-28T08:06:20.7809924+00:00","error":null,"lastVerifiedAt":"2026-10-28T08:06:20.8316261+00:00","snapshotPublishedAt":"2026-10-28T07:25:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-bb16e205630d4b0ba1f570ba3b772f14","complete":false,"records":12181,"lastAttemptAt":"2026-10-28T08:17:51.3532496+00:00","lastSuccessAt":"2026-10-28T08:17:51.348+00:00","error":"18 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-10-28T08:17:51.348+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":7482,"expectedIdentifiers":13514,"failedIdentifiers":18},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-28T08:06:21.3224229+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-28T08:06:21.3224229+00:00","lastSuccessAt":"2026-10-28T08:06:21.4745901+00:00","error":null,"lastVerifiedAt":"2026-10-28T08:06:21.4745902+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8d16a738328646698f9217d8ea11893c","complete":true,"records":13449,"lastAttemptAt":"2026-10-28T08:06:22.1670852+00:00","lastSuccessAt":"2026-10-27T22:48:29.491+00:00","error":null,"lastVerifiedAt":"2026-10-27T22:48:29.491+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13514,"expectedIdentifiers":13514,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-f7cb12508d9e6a348c8a60f772ed85529cc80cd2ff853da1099b57754b20e943","complete":true,"records":9790,"lastAttemptAt":"2026-10-28T08:06:21.1851365+00:00","lastSuccessAt":"2026-10-27T21:49:03.9756799+00:00","error":null,"lastVerifiedAt":"2026-10-28T08:06:21.1851365+00:00","snapshotPublishedAt":"2026-10-27T21:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-72e5e79de0026dd0562d40734074a2236a06886643d67182b8381eaee757dbf7","complete":true,"records":1966,"lastAttemptAt":"2026-10-28T08:06:20.9821116+00:00","lastSuccessAt":"2026-10-27T21:46:38.0277323+00:00","error":null,"lastVerifiedAt":"2026-10-28T08:06:20.9821116+00:00","snapshotPublishedAt":"2026-10-27T21:18:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3a5b306d60fc44677a03a8afc99d87e6c5402770ef68d560f94a8c3ad3802b75","complete":true,"records":3001,"lastAttemptAt":"2026-10-28T08:06:21.2896994+00:00","lastSuccessAt":"2026-10-27T16:45:49.0050993+00:00","error":null,"lastVerifiedAt":"2026-10-28T08:06:21.2896994+00:00","snapshotPublishedAt":"2026-10-27T16:33:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-cf3d7f231228fbafaf00b899a3529c24d9add8aab904e519be8d085668fa0c9c","complete":true,"records":230856,"lastAttemptAt":"2026-10-28T08:06:21.0816412+00:00","lastSuccessAt":"2026-10-28T07:08:12.8687117+00:00","error":null,"lastVerifiedAt":"2026-10-28T08:06:21.0816412+00:00","snapshotPublishedAt":"2026-10-28T06:48:05+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}