# CVE-2026-42052: beets is Vulnerable to XSS

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-04-29T18:29:00.000Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-3gxm-wfjx-m847, PYSEC-2026-2397
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- beetbox beets: < 2.10.0
- beets (PyPI): before 2.10.0

## Every score

- GitHub_M: CVSS:4.0 6.0 Medium `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`
- GitHub: CVSS:4.0 Medium `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`
- PyPA Advisory Database: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/beetbox/beets/security/advisories/GHSA-3gxm-wfjx-m847> (web)
- <https://github.com/beetbox/beets/releases/tag/v2.10.0> (web)
- <https://lists.debian.org/debian-lts-announce/2026/06/msg00030.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42052> (advisory)
- <https://github.com/beetbox/beets> (package)
- <https://pypi.org/project/beets> (package)
- <https://github.com/advisories/GHSA-3gxm-wfjx-m847> (advisory)

## Sources

- CVE List: [CVE-2026-42052](https://www.cve.org/CVERecord?id=CVE-2026-42052), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-3gxm-wfjx-m847](https://github.com/advisories/GHSA-3gxm-wfjx-m847), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-42052](https://nvd.nist.gov/vuln/detail/CVE-2026-42052), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2397](https://osv.dev/vulnerability/PYSEC-2026-2397), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42052 · Whole record: https://cve.day/CVE-2026-42052.json · Rebuilt by cve.day 2026-11-25T22:59:20.539Z
