CVE-2021-41086 Clipboard-based XSS in jsuites

High 8.7 Published Updated

Attackers can execute arbitrary JavaScript via DOM-based XSS when users paste malicious clipboard content into the HTML editor.

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 CVE-2021-41086?

CVE-2021-41086 is a high-severity cross-site scripting vulnerability in jsuites, published on 21 Sep 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

jsuites is an open source collection of common required javascript web components. In affected versions users are subject to cross site scripting (XSS) attacks via clipboard content. jsuites is vulnerable to DOM based XSS if the user can be tricked into copying _anything_ from a malicious and pasting it into the html editor. This is because a part of the clipboard content is directly written to `innerHTML` allowing for javascript injection and thus XSS. Users are advised to update to version 4.9.11 to resolve.

Weakness: CWE-79

Which versions are affected by CVE-2021-41086?

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

PackageAffectedFixed in
jsuites npmAll versions4.9.11
jsuites npmAll versions4.9.11

Products include Jsuites Jsuites.

How do I fix CVE-2021-41086?

Upgrade jsuites to 4.9.11 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-2021-41086 being exploited?

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

Sources

Also known as GHSA-qh7x-j4v8-qw5w.

Is CVE-2021-41086 in your software?

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

Check your SBOMs for free