CVE-2026-42052
Cross-Site Scripting in Beets Web UI
Publication date: 2026-05-04
Last updated on: 2026-05-04
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| beets | beets | to 2.10.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Beets media library management system prior to version 2.10.0. The issue arises because the bundled web UI uses Underscore template interpolation mode <%= ... %> for untrusted metadata fields. In this mode, <%= ... %> performs raw insertion without HTML escaping, which is only done by <%- ... %>. The rendered output is then inserted into the DOM using .html(...), which allows attacker-controlled markup to become active in the DOM.
This means that malicious users can inject harmful HTML or scripts through metadata fields, potentially leading to cross-site scripting (XSS) attacks. The vulnerability was fixed in version 2.10.0.
How can this vulnerability impact me? :
This vulnerability can allow attackers to inject malicious code into the web UI of the Beets media library management system. As a result, users interacting with the web interface may be exposed to cross-site scripting (XSS) attacks.
- Attackers could execute arbitrary scripts in the context of the victim's browser.
- This could lead to theft of sensitive information such as cookies or session tokens.
- It may allow attackers to perform actions on behalf of the user without their consent.
- Overall, it compromises the security and integrity of the affected system's web interface.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability has been patched in Beets version 2.10.0. The immediate step to mitigate this vulnerability is to upgrade your Beets installation to version 2.10.0 or later.