CVE-2023-26149 quill-mention Cross-site Scripting vulnerability
An attacker can execute arbitrary scripts in a user's browser via unsanitized input in the quill-mention library's renderList function.
- 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-2023-26149?
CVE-2023-26149 is a medium-severity cross-site scripting vulnerability in quill-mention, published on 28 Sep 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
Versions of the package quill-mention before 4.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper user-input sanitization, via the renderList function. **Note:** If the mentions list is sourced from unsafe (user-sourced) data, this might allow an injection attack when a Quill user hits @.
Weakness: CWE-79
Which versions are affected by CVE-2023-26149?
2 open source packages ship an affected version, including quill-mention. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
quill-mention npm | All versions | 4.0.0 |
quill-mention npm | All versions | 4.0.0 |
Products include Quill-Mention Quill Mention.
How do I fix CVE-2023-26149?
Upgrade quill-mention to 4.0.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 CVE-2023-26149 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26149 exists.
Sources
Also known as GHSA-jgw5-rp4p-qhp6.