GHSA-g7mw-5cq6-fv82 Cross-Site Scripting in wangeditor

Not scored Published

Attackers can inject arbitrary JavaScript into links via the wangeditor library, leading to code execution in victim browsers.

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
None listed

What is GHSA-g7mw-5cq6-fv82?

GHSA-g7mw-5cq6-fv82 is a cross-site scripting vulnerability in wangeditor, published on 2 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 wangeditor are vulnerable to Cross-Site Scripting. The package fails to properly encode output, allowing arbitrary JavaScript to be inserted in links and executed by browsers.

Recommendation

No fix is currently available. Consider using an alternative module until a fix is made available.

Which versions are affected by GHSA-g7mw-5cq6-fv82?

2 open source packages ship an affected version, including wangeditor.

PackageAffectedFixed in
wangeditor npmAll versionsNone
wangeditor npmAll versionsNone

How do I fix GHSA-g7mw-5cq6-fv82?

No fix has been published for GHSA-g7mw-5cq6-fv82 yet. Limit exposure of the affected software until one is available.

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-g7mw-5cq6-fv82 being exploited?

There is no known exploitation of GHSA-g7mw-5cq6-fv82 in the wild and no public exploit code.

Sources

Is GHSA-g7mw-5cq6-fv82 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free