GHSA-m8fw-534v-xm85: Cloudcmd Cross-Site Scripting Vulnerability
HIGHGHSA-m8fw-534v-xm85 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Cloudcmd libraries in the npm ecosystem. The issue involves cross-site scripting (xss) in cloudcmd. Remediation is available by upgrading affected packages to version 9.1.6.
GHSA-m8fw-534v-xm85 at a Glance
How to Fix GHSA-m8fw-534v-xm85
To remediate this vulnerability, upgrade all affected Cloudcmd 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 cloudcmd@9.1.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls cloudcmd
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-m8fw-534v-xm85, inspect your project dependencies using npm:
npm ls cloudcmd
Analyze the terminal output to locate any version of Cloudcmd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.1.6), your application is affected.
Note: The npm ls cloudcmd 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 Cloudcmd, 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-m8fw-534v-xm85 Affected Cloudcmd Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cloudcmd
|
npm |
< 9.1.6
|
9.1.6
|
References
Frequently Asked Questions
What is GHSA-m8fw-534v-xm85?
Which Cloudcmd versions are affected?
What version fixes GHSA-m8fw-534v-xm85?
Is cloudcmd affected?
What CWE is associated with GHSA-m8fw-534v-xm85?
How can I check npm dependencies for GHSA-m8fw-534v-xm85?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m8fw-534v-xm85",
"modified" : "2020-08-31T18:31:00Z",
"published" : "2019-06-04T15:43:29Z",
"aliases" : [ ],
"summary" : "Cross-Site Scripting (XSS) in cloudcmd",
"details" : "Versions of `cloudcmd` before 9.1.6 are vulnerable to cross-site scripting (XSS) when listing files in a directory. The attacker must control the name of a file for this vulnerability to be exploitable.\n\n\n## Recommendation\n\nUpdate to version 9.1.6 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "cloudcmd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.1.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/coderaiser/cloudcmd/commit/23f4d4702cd3d473977285f26ea2ae7206b45f38"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/341044"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/341044)"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/642"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-04T15:43:12Z",
"nvd_published_at" : null
}
}