{"answers":{"affected":"4 open source packages ship an affected version, including @strapi/content-type-builder and @strapi/plugin-content-type-builder. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-22599 in the wild and no public exploit code.","fix":"Upgrade @strapi/content-type-builder to 5.33.2 or later.","what":"CVE-2026-22599 is a critical SQL injection vulnerability in @strapi/content-type-builder, published on 14 May 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-22599 and fix it if it is affected.\n\nWhat it is: CVE-2026-22599 is a critical SQL injection vulnerability in @strapi/content-type-builder, published on 14 May 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-22599 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @strapi/content-type-builder (npm): affected from 5.0.0; fixed in 5.33.2\n- @strapi/content-type-builder (npm): affected from 5.0.0; fixed in 5.33.2\n- @strapi/plugin-content-type-builder (npm): affected from 4.0.0; fixed in 4.26.1\n- @strapi/plugin-content-type-builder (npm): affected from 4.0.0; fixed in 4.26.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-22599/ (Markdown: https://insights.sbomify.com/CVE-2026-22599/index.md)","id":"CVE-2026-22599","markdown":"https://insights.sbomify.com/CVE-2026-22599/index.md","name":"CVE-2026-22599","record":{"aliases":["GHSA-3xcq-8mjw-h6mx"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Strapi CMS","requires_auth":"high_privilege","summary":"Authenticated administrators can execute arbitrary SQL commands via the Content-Type Builder API, potentially leading to remote code execution or data theft.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"strapi","vendor":"strapi"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-09-26","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-26T03:22:03Z","kind":"github_poc","ref":"https://github.com/abraxas/CVE-2026-22599","stars":0,"title":"CVE-2026-22599 - Strapi - Critical 9.3 - Authenticated POST /content-type-builder/content-types - Authenticated SQL Injection (Knex raw defaultTo)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Strapi Vulnerable to SQL Injection in Content Type Builder","id":"CVE-2026-22599","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":4,"n_references":3,"next":{"headline":"OpenProject is Vulnerable to Arbitrary File Read via ImageMagick SVG Coder","id":"CVE-2026-22600"},"packages":[{"ecosystem":"npm","fixed":["5.33.2"],"introduced":["5.0.0"],"last_affected":[],"package":"@strapi/content-type-builder","purl":null,"source":"GHSA-3xcq-8mjw-h6mx"},{"ecosystem":"npm","fixed":["5.33.2"],"introduced":["5.0.0"],"last_affected":[],"package":"@strapi/content-type-builder","purl":"pkg:npm/%40strapi/content-type-builder","source":"GHSA-3xcq-8mjw-h6mx"},{"ecosystem":"npm","fixed":["4.26.1"],"introduced":["4.0.0"],"last_affected":[],"package":"@strapi/plugin-content-type-builder","purl":null,"source":"GHSA-3xcq-8mjw-h6mx"},{"ecosystem":"npm","fixed":["4.26.1"],"introduced":["4.0.0"],"last_affected":[],"package":"@strapi/plugin-content-type-builder","purl":"pkg:npm/%40strapi/plugin-content-type-builder","source":"GHSA-3xcq-8mjw-h6mx"}],"prev":{"headline":"ManageIQ vulnerable to DoS Attack when creating TimeProfiles","id":"CVE-2026-22598"},"products":["@strapi/content-type-builder","strapi"],"published":"2026-05-14","related":[{"cvss_score":7.2,"headline":"Strapi Cleartext Storage of Sensitive Information","id":"CVE-2023-22894","kev_date_added":"2026-10-08","published":"2023-04-19"},{"cvss_score":10,"headline":"Strapi plugins vulnerable to Server-Side Template Injection and Remote Code Execution in the Users-Permissions Plugin","id":"CVE-2023-22621","kev_date_added":null,"published":"2023-04-19"},{"cvss_score":9.8,"headline":"Unrestricted Upload of File with Dangerous Type in Strapi","id":"CVE-2022-27263","kev_date_added":null,"published":"2022-04-12"},{"cvss_score":9.8,"headline":"Authorization bypass in Strapi","id":"CVE-2020-27664","kev_date_added":null,"published":"2020-10-22"},{"cvss_score":9.8,"headline":"Strapi allows unauthenticated attacker to reset admin password without valid reset token","id":"CVE-2019-18818","kev_date_added":null,"published":"2019-11-07"},{"cvss_score":9.2,"headline":"Strapi may leak sensitive data via relational filtering due to lack of query sanitization","id":"CVE-2026-27886","kev_date_added":null,"published":"2026-05-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-14","vendors":["strapi"]},"summary":"Authenticated administrators can execute arbitrary SQL commands via the Content-Type Builder API, potentially leading to remote code execution or data theft.","url":"https://insights.sbomify.com/CVE-2026-22599/"}