PT-2026-36877 · Beets · Beets
Forimoc
+1
·
Published
2026-04-29
·
Updated
2026-05-27
·
CVE-2026-42052
CVSS v4.0
6.0
Medium
| Vector | 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 |
Name of the Vulnerable Software and Affected Versions
Beets versions prior to 2.10.0
Description
The bundled web UI uses Underscore template interpolation mode
<%= ... %> for untrusted metadata fields. In this runtime, <%= ... %> performs raw insertion, whereas HTML escaping is only handled by <%- ... %>. The rendered output is then inserted using .html(...), which allows attacker-controlled markup to become active DOM, leading to Cross-Site Scripting (XSS), a condition where malicious scripts are injected into trusted websites.Recommendations
Update to version 2.10.0.
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Beets