Vulnerability · Published May 4, 2026 · Assigned by GitHub_M

CVE-2026-42052beets is Vulnerable to XSS

Medium 6.0

In plain English

A medium-severity cross-site scripting in beets from beetbox. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.0Medium
Exploit odds (30 days)0.3%top 77.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12beets1.6.0-4+deb12u1DEBIAN-CVE-2026-42052
Debian:13beets2.2.0-3+deb13u1DEBIAN-CVE-2026-42052
Debian:14beets2.11.0-1DEBIAN-CVE-2026-42052
PyPIbeets2.10.0GHSA-3gxm-wfjx-m847
PyPIbeets2.10.0PYSEC-2026-2397
Ubuntu:25.10beetsno fix listedUBUNTU-CVE-2026-42052

Affected products (as reported)

VendorProductVersions
beetbox beets < 2.10.0

Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References