CVE-2020-23849 Cross-site Scripting in jsoneditor

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript in the tree mode of the jsoneditor library via stored XSS, potentially compromising user sessions.

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 CVE-2020-23849?

CVE-2020-23849 is a medium-severity cross-site scripting vulnerability in n/a, published on 11 Jan 2021. 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

Stored XSS was discovered in the tree mode of jsoneditor before 9.0.2 through injecting and executing JavaScript.

Weakness: CWE-79

Which versions are affected by CVE-2020-23849?

2 open source packages ship an affected version, including jsoneditor. It affects 1 product.

PackageAffectedFixed in
jsoneditor npmAll versions9.0.2
jsoneditor npmAll versions9.0.2

Products include Jsoneditoronline Jsoneditor.

How do I fix CVE-2020-23849?

Upgrade jsoneditor to 9.0.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 CVE-2020-23849 being exploited?

There is no known exploitation of CVE-2020-23849 in the wild and no public exploit code.

Sources

Also known as GHSA-q854-j362-cfq9.

Is CVE-2020-23849 in your software?

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

Check your SBOMs for free