GHSA-hgwm-pv9h-q5m7: Mirador Cross-Site Scripting Vulnerability

MODERATE
CWE-79
Published
Advisory Summary

GHSA-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.

GHSA-hgwm-pv9h-q5m7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hgwm-pv9h-q5m7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Mirador
Package Ecosystem npm
Published Date
Last Updated

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.

mirador fixed: 3.0.0-alpha.0
npm install mirador@3.0.0-alpha.0
Verify Direct and Transitive Dependencies

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

### Impact Mirador 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. ### Patches Mirador adopters should update to v3.0.0, no updates exist for v2.x releases. ### Workarounds Yes, Mirador users could fork and create their own custom build of Mirador and make the bug fixes themselves. ### References https://github.com/advisories/GHSA-gxr4-xjj5-5px2 https://github.com/advisories/GHSA-jpcq-cgw6-v4j6 https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/ https://jquery.com/upgrade-guide/3.5/

GHSA-hgwm-pv9h-q5m7 Affected Mirador Versions

1 component(s)
Fixed Versions:
3.0.0-alpha.0
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?
GHSA-hgwm-pv9h-q5m7 is a security vulnerability in Mirador involving Potential XSS in jQuery dependency in Mirador under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Mirador versions are affected?
Affected versions include releases prior to 3.0.0-alpha.0 across affected packages: mirador.
What version fixes GHSA-hgwm-pv9h-q5m7?
Upgrading to 3.0.0-alpha.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mirador affected?
Yes, mirador is affected in releases prior to 3.0.0-alpha.0. Upgrade your dependency to 3.0.0-alpha.0 or later.
What CWE is associated with GHSA-hgwm-pv9h-q5m7?
GHSA-hgwm-pv9h-q5m7 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for GHSA-hgwm-pv9h-q5m7?
Run the dependency tree command: 'npm ls mirador'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}