CVE-2022-25929 Cross-site Scripting (XSS)
An attacker can execute arbitrary scripts via unsanitized input in chart properties, affecting users of the smoothie JavaScript 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 CVE-2022-25929?
CVE-2022-25929 is a medium-severity cross-site scripting vulnerability in smoothie, published on 21 Dec 2022. 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
The package smoothie from 1.31.0 and before 1.36.1 are vulnerable to Cross-site Scripting (XSS) due to improper user input sanitization in strokeStyle and tooltipLabel properties. Exploiting this vulnerability is possible when the user can control these properties.
Weakness: CWE-79
Which versions are affected by CVE-2022-25929?
2 open source packages ship an affected version, including smoothie. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
smoothie npm | From 1.31.0 | 1.36.1 |
smoothie npm | From 1.31.0 | 1.36.1 |
Products include Smoothiecharts Smoothie Charts.
How do I fix CVE-2022-25929?
Upgrade smoothie to 1.36.1 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-2022-25929 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25929 exists.
Sources
Also known as GHSA-g662-qq45-ppwm.