Server-side Request Forgery (SSRF) Affecting @directus/api package, versions <21.0.0 >=22.0.0 <22.1.1
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
Introduced: 18 Sep 2024
New CVE-2024-46990 Open this link in a new tabHow 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
.