Medium, CVSS 6.0PyPIAmendedPublished
beets has a Cross-site Scripting vulnerability
CVE-2026-42052 · GHSA-3gxm-wfjx-m847
- Affected
- PyPI beets < 2.10.0
- Fixed in
- 2.10.0· Vendor fix available
- Issue
- During code logic analyis, an area that may lead to unintended behavior under specific conditions was discovered. Overview - Verified Version: 80cd21554124da07d17a4f962c7d770a4f70d0f2 - Vulnerability Type: Stored XSS - Affected Location: beetsplug/web/templates/index.html:42 - Trigger Scenario: Metadata fields such as title, lyrics, or comments are rendered with raw template interpolation and inserted into DOM via .html(...). Root Cause 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. Source-to-Sink Chain 1. Source (attacker-controlled input) - Item metadata values (for example title, lyrics, comments) can contain attacker HTML payload. 2. Data flow - Templates in beetsplug/web/templates/index.html:42-46,87-91 render metadata with…
Recommended action: Upgrade to 2.10.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.