Skip to main content

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
Share

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/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
SUSE
4.0 MEDIUM
qualitative

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

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

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
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
X

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.

Analysis

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.

Vendor StatusVendor

SUSE

Severity: Medium

Share

EUVD-2026-27055 vulnerability details – vuln.today

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