Skip to content
OpenAdvisories
Medium · 6.0 CVE-2026-42052 EUVD-2026-27055GHSA-3gxm-wfjx-m847PYSEC-2026-2397

beets is Vulnerable to XSS

Published May 4, 2026 · Updated Jun 23, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
beetbox beets < 2.10.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 beets 2.11.0-1 —
Debian 13 beets 2.2.0-3+deb13u1 —
Debian 12 beets 1.6.0-4+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 beets No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS beets 2.5.1-4ubuntu0.1~esm1 USN-8747-1
Ubuntu Pro 24.04 LTS beets 1.6.0-8ubuntu0.1~esm1 USN-8747-1
Ubuntu Pro 22.04 LTS beets 1.6.0-1ubuntu0.1~esm1 USN-8747-1
Ubuntu Pro 20.04 LTS beets 1.4.9-4ubuntu0.1~esm1 USN-8747-1
Ubuntu Pro 18.04 LTS beets 1.4.6-2ubuntu0.1~esm1 USN-8747-1
Ubuntu Pro 16.04 LTS beets 1.3.8+dfsg-2ubuntu0.1~esm1 USN-8747-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed beets 2.11.0-1.1 openSUSE-SU-2026:10865-1
openSUSE Leap 16.0 beets 2.2.0-bp160.2.1 openSUSE-SU-2026:21383-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI beets < 2.10.0 2.10.0 GHSA-3gxm-wfjx-m847

Advisories 3

References