Insertion of Sensitive Information into Log File Affecting @directus/api package, versions <21.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th 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 Learn

Learn about Insertion of Sensitive Information into Log File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-DIRECTUSAPI-8171456
  • published9 Oct 2024
  • disclosed8 Oct 2024
  • creditlicitdev

Introduced: 8 Oct 2024

CVE-2024-47822  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade @directus/api to version 21.0.0 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 Insertion of Sensitive Information into Log File by logging access tokens from the req.query parameter when the LOG_STYLE is set to raw. The risk is elevated in cases where the access tokens in use are static or have long expiry times.

References

CVSS Scores

version 4.0
version 3.1