CVE-2022-23080: Directus Server-Side Request Forgery Vulnerability
MODERATECVE-2022-23080 is a MODERATE (CVSS 5.0) server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Directus libraries in the npm ecosystem. The issue involves server-side request forgery in directus. Remediation is available by upgrading affected packages to version 9.7.0.
CVE-2022-23080 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N).
How to Fix CVE-2022-23080
To remediate this vulnerability, upgrade all affected Directus dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install directus@9.7.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls directus
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-23080, inspect your project dependencies using npm:
npm ls directus
Analyze the terminal output to locate any version of Directus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.7.0), your application is affected.
Note: The npm ls directus command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Directus, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-23080 Affected Directus Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
directus
|
npm |
≥ 9.0.0-beta.2
< 9.7.0
|
9.7.0
|
References
Frequently Asked Questions
What is CVE-2022-23080?
Which Directus versions are affected?
What version fixes CVE-2022-23080?
Is directus affected?
What is the CVSS score of CVE-2022-23080?
What CWE is associated with CVE-2022-23080?
How can I check npm dependencies for CVE-2022-23080?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5h75-pvq4-82c9",
"modified" : "2022-06-23T17:49:22Z",
"published" : "2022-06-23T00:00:33Z",
"aliases" : [ "CVE-2022-23080" ],
"summary" : "Server-Side Request Forgery in Directus",
"details" : "Directus versions v9.0.0-beta.2 through 9.6.0 are vulnerable to server-side request forgery (SSRF) in the media upload functionality, which allows a low privileged user to perform internal network port scans.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "directus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0-beta.2"
}, {
"fixed" : "9.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23080"
}, {
"type" : "WEB",
"url" : "https://github.com/directus/directus/commit/6da3f1ed5034115b1da00440008351bf0d808d83"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/directus/directus"
}, {
"type" : "WEB",
"url" : "https://www.mend.io/vulnerability-database/CVE-2022-23080"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-23T17:49:22Z",
"nvd_published_at" : "2022-06-22T16:15:00Z"
}
}