The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42052

CVE-2026-42052: Beets Media Library XSS Vulnerability

CVE-2026-42052 is a cross-site scripting flaw in Beets media library management system affecting the bundled web UI. Attackers can inject malicious scripts via untrusted metadata fields. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 7, 2026

CVE-2026-42052 Overview

CVE-2026-42052 is a Cross-Site Scripting (XSS) vulnerability in Beets, an open-source media library management system. The bundled web UI in versions prior to 2.10.0 uses Underscore.js template interpolation mode <%= ... %> to render untrusted metadata fields. This interpolation mode performs raw insertion without HTML escaping, while only <%- ... %> applies escaping. The rendered output is then injected into the DOM with .html(...), allowing attacker-controlled markup in media metadata to execute as active DOM content. The maintainers patched the issue in Beets version 2.10.0.

Critical Impact

Attacker-controlled metadata fields can execute arbitrary JavaScript in the browser of any user accessing the Beets web UI, leading to session theft, UI manipulation, and pivot opportunities into the host environment.

Affected Products

  • Beets media library management system, all versions prior to 2.10.0
  • Beets bundled web UI component (beetsplug/web)
  • Deployments exposing the Beets web interface to multi-user or networked access

Discovery Timeline

  • 2026-05-04 - CVE-2026-42052 published to NVD
  • 2026-05-05 - Last updated in NVD database

Technical Details for CVE-2026-42052

Vulnerability Analysis

The vulnerability is classified as Cross-Site Scripting [CWE-79]. Beets imports media metadata such as track titles, artist names, album names, and comments from audio files. The web UI renders these fields client-side using Underscore.js templates.

In Underscore template syntax, <%= value %> performs raw HTML interpolation. The escaping variant <%- value %> is required to neutralize markup. Beets templates used the unescaped form for fields populated from untrusted file metadata. The result of _.template(...) is then passed to jQuery's .html(...), which parses the string as HTML and activates any embedded scripts or event handlers.

An attacker who controls a media file imported by a Beets user can embed JavaScript payloads in tag fields. When a victim opens the web UI and views the affected library item, the payload runs in the origin of the Beets server.

Root Cause

The root cause is incorrect choice of Underscore template interpolation mode. Developers used <%= %> for fields that originate from untrusted media file tags. Combined with .html() insertion, this permits HTML and script injection without input sanitization or output encoding at any layer.

Attack Vector

Exploitation requires an attacker to deliver a media file containing malicious markup in metadata tags such as title, artist, album, or comment. The attacker tricks a Beets user into importing the file or contributes it to a shared library. When the user browses the web UI, the browser parses the unescaped metadata and executes the attacker's payload. User interaction is required, and the attack proceeds over the network against the web UI origin.

No verified public exploit code is available. Refer to the GitHub Security Advisory GHSA-3gxm-wfjx-m847 for technical details.

Detection Methods for CVE-2026-42052

Indicators of Compromise

  • Media files with metadata fields containing HTML tags such as <script>, <img onerror=...>, or <svg onload=...>
  • Outbound HTTP requests from a user's browser to unfamiliar domains immediately after loading the Beets web UI
  • Unexpected DOM elements or injected <iframe> content within the Beets web UI
  • Beets library database (library.db) entries containing raw HTML or JavaScript in tag columns

Detection Strategies

  • Scan the Beets library database for metadata values containing angle-bracket sequences and known XSS payload patterns
  • Inspect imported media files with tag readers such as mutagen or exiftool to flag entries containing HTML or JavaScript syntax
  • Enable browser Content Security Policy reporting on the web UI host to capture script-source violations
  • Review web UI access logs for sessions that load metadata-rich endpoints followed by anomalous outbound activity

Monitoring Recommendations

  • Monitor the Beets server process for unexpected child processes or file writes triggered by web UI sessions
  • Alert on browser console errors and CSP violations originating from the Beets origin
  • Track new file imports and correlate against subsequent web UI rendering activity
  • Restrict and log network access to the Beets web UI port, since it lacks authentication by default

How to Mitigate CVE-2026-42052

Immediate Actions Required

  • Upgrade Beets to version 2.10.0 or later, which replaces unsafe interpolation in the web UI templates
  • Stop exposing the Beets web UI to untrusted networks until the upgrade is applied
  • Audit existing library metadata for HTML or JavaScript content and sanitize or remove affected entries
  • Avoid importing media files from untrusted sources until templates are confirmed patched

Patch Information

The fix is included in Beets release v2.10.0. The patch switches metadata field rendering from raw <%= %> interpolation to escaping <%- %> interpolation in the bundled web UI templates. Full advisory details are available in GitHub Security Advisory GHSA-3gxm-wfjx-m847.

Workarounds

  • Bind the Beets web UI to 127.0.0.1 only and tunnel via SSH for remote access
  • Place the web UI behind a reverse proxy that enforces a strict Content Security Policy disallowing inline scripts
  • Disable the web plugin in config.yaml until the upgrade can be completed
  • Sanitize metadata at import time by stripping HTML characters from tag fields using a pre-import script
bash
# Configuration example
# Upgrade Beets to the patched release
pip install --upgrade 'beets>=2.10.0'

# Verify installed version
beet version

# Temporary mitigation: disable the web plugin in ~/.config/beets/config.yaml
# plugins: [ ... ]   # remove 'web' from this list until upgraded

# Or bind the web UI to localhost only
# web:
#   host: 127.0.0.1
#   port: 8337

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechBeets

  • SeverityMEDIUM

  • CVSS Score6.0

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • 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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Beets Release v2.10.0

  • GitHub Security Advisory GHSA-3gxm-wfjx-m847
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English