Vulnerabilities in pkg:npm/mirador
PACKAGEGHSA-hgwm-pv9h-q5m7 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mirador libraries in the npm ecosystem. The issue involves potential xss in jquery dependency in mirador. Remediation is available by upgrading affected packages to version 3.0.0-alpha.0.
pkg:npm/mirador
Vulnerability advisories affecting package pkg:npm/mirador. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hgwm-pv9h-q5m7 | - | MODERATE | Potential XSS in jQuery dependency in Mirador |
GHSA-hgwm-pv9h-q5m7 at a Glance
How to Fix GHSA-hgwm-pv9h-q5m7
To remediate this vulnerability, upgrade all affected Mirador 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 mirador@3.0.0-alpha.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mirador
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-hgwm-pv9h-q5m7, inspect your project dependencies using npm:
npm ls mirador
Analyze the terminal output to locate any version of Mirador in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.0-alpha.0), your application is affected.
Note: The npm ls mirador 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 Mirador, 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-hgwm-pv9h-q5m7 Affected Mirador Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mirador
|
npm |
< 3.0.0-alpha.0
|
3.0.0-alpha.0
|
References
Frequently Asked Questions
What is GHSA-hgwm-pv9h-q5m7?
Which Mirador versions are affected?
What version fixes GHSA-hgwm-pv9h-q5m7?
Is mirador affected?
What CWE is associated with GHSA-hgwm-pv9h-q5m7?
How can I check npm dependencies for GHSA-hgwm-pv9h-q5m7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hgwm-pv9h-q5m7",
"modified" : "2021-10-04T21:19:55Z",
"published" : "2020-09-18T18:03:29Z",
"aliases" : [ ],
"summary" : "Potential XSS in jQuery dependency in Mirador",
"details" : "### Impact\nMirador users less than v3.0.0 (alpha-rc) versions that have an unpatched jQuery. When adopters update jQuery they will find some of Mirador functionality to be broken.\n\n### Patches\nMirador adopters should update to v3.0.0, no updates exist for v2.x releases.\n\n### Workarounds\nYes, Mirador users could fork and create their own custom build of Mirador and make the bug fixes themselves.\n\n### References\nhttps://github.com/advisories/GHSA-gxr4-xjj5-5px2\nhttps://github.com/advisories/GHSA-jpcq-cgw6-v4j6\n\n\nhttps://blog.jquery.com/2020/04/10/jquery-3-5-0-released/\nhttps://jquery.com/upgrade-guide/3.5/",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mirador"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.0-alpha.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.7.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ProjectMirador/mirador/security/advisories/GHSA-hgwm-pv9h-q5m7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ProjectMirador/mirador"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-09-17T21:56:19Z",
"nvd_published_at" : null
}
}