SQL injection in strapi - CVE-2026-22599
Published: May 13, 2026
strapi
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary database statements.
The vulnerability exists due to SQL injection in the Content-Type Builder write API when processing the column.defaultTo attribute during content-type creation or modification. A remote privileged user can send crafted API input using a tuple with isRaw: true to execute arbitrary database statements.
This occurs during schema migration when the supplied value is passed directly into Knex's db.connection.raw() without sanitization.