CVE-2026-42052
Deferred Deferred - Pending Action
Cross-Site Scripting in Beets Web UI

Publication date: 2026-05-04

Last updated on: 2026-05-04

Assigner: GitHub, Inc.

Description
Beets is the media library management system. Prior to version 2.10.0, the bundled web UI uses Underscore template interpolation mode <%= ... %> for untrusted metadata fields. In this runtime, <%= ... %> is raw insertion and HTML escaping is only performed by <%- ... %>. Rendered output is then inserted with .html(...), allowing attacker-controlled markup to become active DOM. This issue has been patched in version 2.10.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-04
Last Modified
2026-05-04
Generated
2026-05-07
AI Q&A
2026-05-05
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
beets beets to 2.10.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart