medium6.0
CVE-2026-42052
beets has a Cross-site Scripting vulnerability
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | beets | < 2.10.0 | 2.10.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-3gxm-wfjx-m847
- https://github.com/beetbox/beets/security/advisories/GHSA-3gxm-wfjx-m847
- https://github.com/beetbox/beets/releases/tag/v2.10.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-42052
- https://lists.debian.org/debian-lts-announce/2026/06/msg00030.html