CVE-2021-32854 textAngular text editor vulnerable to Cross-site Scripting

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts in victim browsers via copy-paste XSS in the textAngular library, requiring user interaction.

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

CVE-2021-32854 is a medium-severity cross-site scripting vulnerability in npm textangular, published on 20 Feb 2023. 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

textAngular is a text editor for Angular.js. Version 1.5.16 and prior are vulnerable to copy-paste cross-site scripting (XSS). For this particular type of XSS, the victim needs to be fooled into copying a malicious payload into the text editor. There are no known patches.

Weakness: CWE-79

Which versions are affected by CVE-2021-32854?

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

PackageAffectedFixed in
textangular npmAll versions to 1.5.16None
textangular npmAll versions to 1.5.16None

Products include Textangular Textangular.

How do I fix CVE-2021-32854?

No fix has been published for CVE-2021-32854 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 CVE-2021-32854 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32854 exists.

Sources

Also known as GHSA-7h4w-6p98-r3wx.

Is CVE-2021-32854 in your software?

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

Check your SBOMs for free