Intel

AIKIDO-2026-410222

directus is vulnerable to SQL Injection

CVE-2026-10716Published Aug 6, 2026
August 6, 2026

72

CVE Score

High

SQL Injection

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the directus library to the patch version.

Who does this affect?

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.

Package

Versions

0.0.1 - 12.0.2

Fixed in 12.1.0

Background info

directus is vulnerable to SQL Injection in versions 0.0.1 - 12.0.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea