GHSA-jfcc-rm7f-xgf8 Cross-Site Scripting in mavon-editor
Attackers can execute arbitrary JavaScript in victims' browsers via unsanitized input in the mavon-editor library.
- 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-jfcc-rm7f-xgf8?
GHSA-jfcc-rm7f-xgf8 is a cross-site scripting vulnerability in mavon-editor, published on 3 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
All versions of mavon-editor are vulnerable to Cross-Site Scripting. The package fails to sanitize entered input, allowing attackers to execute arbitrary JavaScript in a victim's browser.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Which versions are affected by GHSA-jfcc-rm7f-xgf8?
2 open source packages ship an affected version, including mavon-editor.
| Package | Affected | Fixed in |
|---|---|---|
mavon-editor npm | All versions | 2.8.2 |
mavon-editor npm | All versions | 2.8.2 |
How do I fix GHSA-jfcc-rm7f-xgf8?
Upgrade mavon-editor to 2.8.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-jfcc-rm7f-xgf8 being exploited?
There is no known exploitation of GHSA-jfcc-rm7f-xgf8 in the wild and no public exploit code.