CVEfocus › CVE database › CVE-2026-42052

CVE-2026-42052beets is Vulnerable to XSS

CVSS 6.0 MediumEPSS 0.5% (higher than 38% of CVEs)Published 2026-05-04Updated 2026-06-23Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
6Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04beetsFix pending2.5.1-4ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-42052
Ubuntu 25.10beetsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-42052
Ubuntu 24.04beetsFix pending1.6.0-8ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-42052
Ubuntu 22.04beetsFix pending1.6.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-42052
Ubuntu 20.04beetsFix pending1.4.9-4ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-42052
Ubuntu 18.04beetsFix pending1.4.6-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-42052
Ubuntu 16.04beetsFix pending1.3.8+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-42052
Debian 14beetsFixed2.11.0-1DEBIAN-CVE-2026-42052
Debian 13beetsFixed2.2.0-3+deb13u1DEBIAN-CVE-2026-42052
Debian 12beetsFixed1.6.0-4+deb12u1DEBIAN-CVE-2026-42052
PyPI librarybeetsFixed2.10.0PYSEC-2026-2397

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.