GHSA-hgwm-pv9h-q5m7 Potential XSS in jQuery dependency in Mirador
An XSS vulnerability in the jQuery dependency of Mirador allows attackers to execute arbitrary scripts in the context of the viewer.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-hgwm-pv9h-q5m7?
GHSA-hgwm-pv9h-q5m7 is a cross-site scripting vulnerability in mirador, published on 18 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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/
Which versions are affected by GHSA-hgwm-pv9h-q5m7?
2 open source packages ship an affected version, including mirador.
| Package | Affected | Fixed in |
|---|---|---|
mirador npm | All versions | 3.0.0-alpha.0 |
mirador npm | All versions | 3.0.0-alpha.0 |
How do I fix GHSA-hgwm-pv9h-q5m7?
Upgrade mirador to 3.0.0-alpha.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is GHSA-hgwm-pv9h-q5m7 being exploited?
There is no known exploitation of GHSA-hgwm-pv9h-q5m7 in the wild and no public exploit code.