directus is vulnerable to SQL Injection
72
High Risk
Directus builds a collection's table columns from client-supplied fields[].type values during collection creation. Any field whose type begins with geometry is routed to the PostgreSQL geometry helper, which places the derived subtype into a raw geometry(...) DDL fragment without an allowlist or neutralization. On PostgreSQL with the PostGIS extension, a crafted subtype terminates the intended expression and appends attacker-controlled SQL that the database executes as a blind, time-based injection. The fix restricts geometry field types to a known set of supported subtypes.
You are affected if you are using a version that falls within the vulnerable range, you run Directus on PostgreSQL with the PostGIS extension enabled, and an account permitted to create collections (an administrator by default) submits the crafted geometry field type.
directus is vulnerable to SQL Injection in versions 0.0.1 - 12.0.2.
Upgrade the directus library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant