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

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 ID SNYK-JS-DIRECTUSAPI-8056289
  • published 19 Sep 2024
  • disclosed 18 Sep 2024
  • credit Unknown

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
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    Low
  • Integrity (SI)
    None
  • Availability (SA)
    None