Vulnerabilities in pkg:npm/redis-commander
PACKAGEGHSA-8c8c-4vfj-rrpc is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Redis commander libraries in the npm ecosystem. The issue involves reflected cross-site scripting in redis-commander. Remediation is available by upgrading affected packages to version 0.5.0.
pkg:npm/redis-commander
Vulnerability advisories affecting package pkg:npm/redis-commander. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8c8c-4vfj-rrpc | - | LOW | Reflected Cross-Site Scripting in redis-commander |
GHSA-8c8c-4vfj-rrpc at a Glance
How to Fix GHSA-8c8c-4vfj-rrpc
To remediate this vulnerability, upgrade all affected Redis commander 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 redis-commander@0.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls redis-commander
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-8c8c-4vfj-rrpc, inspect your project dependencies using npm:
npm ls redis-commander
Analyze the terminal output to locate any version of Redis commander in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0), your application is affected.
Note: The npm ls redis-commander 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 Redis commander, 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-8c8c-4vfj-rrpc Affected Redis commander Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
redis-commander
|
npm |
≥ 0.0.0
< 0.5.0
|
0.5.0
|
References
Frequently Asked Questions
What is GHSA-8c8c-4vfj-rrpc?
Which Redis commander versions are affected?
What version fixes GHSA-8c8c-4vfj-rrpc?
Is redis-commander affected?
What CWE is associated with GHSA-8c8c-4vfj-rrpc?
How can I check npm dependencies for GHSA-8c8c-4vfj-rrpc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8c8c-4vfj-rrpc",
"modified" : "2022-03-04T22:02:50Z",
"published" : "2020-09-01T19:05:11Z",
"aliases" : [ ],
"summary" : "Reflected Cross-Site Scripting in redis-commander",
"details" : "Affected versions of `redis-commander` contain a cross-site scripting vulnerability in the `highlighterId` paramter of the clipboard.swf component on hosts serving Redis Commander.\n\nMitigating factors:\nFlash must be installed / enabled for this to work. The below proof of concept was verified to work using Firefox 57.0 on Windows 10 by manually installing the [Flash NPAPI Windows plugin](https://get.adobe.com/flashplayer/otherversions/)\n\n## Proof of concept\n\n```\nhttp://instance/jstree/_docs/syntax/clipboard.swf?highlighterId=\\%22))}%20catch(e)%20{alert(document.domain);}//\n```\n\n\n## Recommendation\n\nNo direct patch for this vulnerability is currently available.\n\nAt this time, the best mitigation is to use an alternative, functionally equivalent package, or to use extreme caution when using redis-commander, ensuring that redis-commmander is the only web page you have open, and avoiding clicking on any links.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "redis-commander"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
}, {
"fixed" : "0.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/joeferner/redis-commander/commit/1a483ebb3a706cf199dd283cf0aead96606adb14"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/296377"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/joeferner/redis-commander"
}, {
"type" : "WEB",
"url" : "https://github.com/joeferner/redis-commander/releases/tag/v0.5.0"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/562"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:27:52Z",
"nvd_published_at" : null
}
}