External Control of File Name or Path Affecting @directus/api package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-DIRECTUSAPI-12079023
  • published21 Aug 2025
  • disclosed20 Aug 2025
  • creditZombor Máté

Introduced: 20 Aug 2025

NewCVE-2025-55746  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

@directus/api is a real-time API and App dashboard for managing SQL database content

Affected versions of this package are vulnerable to External Control of File Name or Path via the write and join method, which used the fullPath method to create the absolute path. An attacker can upload or modify files with arbitrary content and extensions by sending crafted requests, potentially bypassing authentication and input validation.

References

CVSS Base Scores

version 4.0
version 3.1