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


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th percentile)

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?

Upgrade @directus/api to version 28.0.3 or higher.

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