Server-side Request Forgery (SSRF) Affecting @directus/api package, versions <21.0.0>=22.0.0 <22.1.1


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (18th 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 Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-DIRECTUSAPI-8056289
  • published19 Sept 2024
  • disclosed18 Sept 2024
  • creditUnknown

Introduced: 18 Sep 2024

CVE-2024-46990  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade @directus/api to version 21.0.0, 22.1.1 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 Server-side Request Forgery (SSRF) via the loopback IP filter process. An attacker can bypass the default 0.0.0.0 filter to access localhost using other registered loopback devices, such as 127.0.0.2 to 127.127.127.127. This is only exploitable if the system relies on blocking access to localhost using the default filter.

Workaround

This vulnerability can be mitigated by manually adding the 127.0.0.0/8 CIDR range, which will block access to any 127.X.X.X IP instead of just 127.0.0.1.

CVSS Scores

version 4.0
version 3.1