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-06-16
AI Q&A
2026-05-05
EPSS Evaluated
2026-06-15
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 Quick Actions
Instant insights powered by AI
Executive Summary

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.

Impact Analysis

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.
Mitigation Strategies

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.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42052. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart