GHSA-mpjf-8cmf-p789 Cross-Site Scripting in jingo
An attacker can inject malicious scripts into wiki pages, leading to code execution in the victim's browser.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-mpjf-8cmf-p789?
GHSA-mpjf-8cmf-p789 is a cross-site scripting vulnerability in jingo, published on 1 Sep 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Versions of jingo prior to 1.9.2 are vulnerable to Cross-Site Scripting (XSS). If malicious input such as <script>alert(1)</script> is placed in the content of a wiki page, Jingo does not properly encode the input and it is executed instead of rendered as text.
Recommendation
Upgrade to version 1.9.2
Which versions are affected by GHSA-mpjf-8cmf-p789?
2 open source packages ship an affected version, including jingo.
| Package | Affected | Fixed in |
|---|---|---|
jingo npm | All versions | 1.9.2 |
jingo npm | All versions | 1.9.2 |
How do I fix GHSA-mpjf-8cmf-p789?
Upgrade jingo to 1.9.2 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-mpjf-8cmf-p789 being exploited?
There is no known exploitation of GHSA-mpjf-8cmf-p789 in the wild and no public exploit code.