Intel

AIKIDO-2026-942600

directus is vulnerable to Path Traversal

Path TraversalGHSA-5h38-6755-g83w Published Yesterday

68

Medium Risk

This Affects:

JSdirectus
0.0.1 - 12.0.2
Fixed in 12.1.0
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.

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.

Background info

directus is vulnerable to Path Traversal in versions 0.0.1 - 12.0.2.

How to fix this

Upgrade the directus library to the patch version.