Intel

AIKIDO-2026-942600

directus is vulnerable to Path Traversal

GHSA-5h38-6755-g83wPublished Aug 6, 2026
August 6, 2026

68

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

The Mail Service resolves email template names by joining the caller-supplied template value onto the templates directory with path.resolve, which collapses traversal segments and never confirms the result stays inside the templates root. A user who can configure a Flow Send Email operation can supply a relative name that escapes the root, causing the Liquid engine to read and render an arbitrary host file into the email body. This discloses environment files, credentials, and other host configuration, and weakens tenant isolation in shared-hosting deployments. The fix restricts resolved template paths to the configured templates directories.

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 and you use Flows with a Send Email operation.

Package

Versions

0.0.1 - 12.0.2

Fixed in 12.1.0

Background info

directus is vulnerable to Path Traversal 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