GHSA-cr56-66mx-293v Cross-Site Scripting in @toast-ui/editor

Not scored Published

Attackers can execute arbitrary JavaScript in victims' browsers via XSS bypasses in the Toast UI 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-cr56-66mx-293v?

GHSA-cr56-66mx-293v is a cross-site scripting vulnerability in @toast-ui/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

Versions of @toast-ui/editor prior to 2.2.0 are vulnerable to Cross-Site Scripting (XSS). There are multiple bypasses to the package's built-in XSS sanitization. This may allow attackers to execute arbitrary JavaScript on a victim's browser.

Recommendation

Upgrade to version 2.2.0 or later.

Which versions are affected by GHSA-cr56-66mx-293v?

2 open source packages ship an affected version, including @toast-ui/editor.

PackageAffectedFixed in
@toast-ui/editor npmAll versions2.2.0
@toast-ui/editor npmAll versions2.2.0

How do I fix GHSA-cr56-66mx-293v?

Upgrade @toast-ui/editor to 2.2.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-cr56-66mx-293v being exploited?

There is no known exploitation of GHSA-cr56-66mx-293v in the wild and no public exploit code.

Sources

Is GHSA-cr56-66mx-293v in your software?

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

Check your SBOMs for free