GHSA-qf6h-p3mr-vmh5: Duplicate Advisory Code Injection Vulnerability
MODERATEGHSA-qf6h-p3mr-vmh5 is a MODERATE (CVSS 4.1) code injection vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves code injection in directus. Remediation is available in the latest vendor maintenance releases.
GHSA-qf6h-p3mr-vmh5 at a Glance
Security Impact
CVSS: 4.1
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:R/S:C/C:N/I:L/A:N).
How to Fix GHSA-qf6h-p3mr-vmh5
To remediate this vulnerability, upgrade all affected Duplicate Advisory 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@Latest secure release
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 GHSA-qf6h-p3mr-vmh5, inspect your project dependencies using npm:
npm ls directus
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Duplicate Advisory, 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
GHSA-qf6h-p3mr-vmh5 Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
directus
|
npm |
≤ 10.13.0
|
|
References
Frequently Asked Questions
What is GHSA-qf6h-p3mr-vmh5?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-qf6h-p3mr-vmh5?
Is directus affected?
What is the CVSS score of GHSA-qf6h-p3mr-vmh5?
What CWE is associated with GHSA-qf6h-p3mr-vmh5?
How can I check npm dependencies for GHSA-qf6h-p3mr-vmh5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qf6h-p3mr-vmh5",
"modified" : "2025-03-22T00:35:38Z",
"published" : "2024-08-15T03:30:28Z",
"withdrawn" : "2025-03-22T00:35:38Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Code injection in Directus",
"details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-9qrm-48qf-r2rw. This link is maintained to preserve external references.\n\n## Original Description\nDirectus v10.13.0 allows an authenticated external attacker to execute arbitrary JavaScript on the client. This is possible because the application injects an attacker-controlled parameter that will be stored in the server and used by the client into an unsanitized DOM element. When chained with CVE-2024-6534, it could result in account takeover.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "directus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "10.13.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6533"
}, {
"type" : "WEB",
"url" : "https://directus.io"
}, {
"type" : "WEB",
"url" : "https://fluidattacks.com/advisories/bocelli"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/directus/directus"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-15T21:55:24Z",
"nvd_published_at" : "2024-08-15T03:15:04Z"
}
}