CVE-2026-42052: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in beetbox beets
Beets is the media library management system. Prior to version 2.10.0, 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. This issue has been patched in version 2.10.0.
AI Analysis
Technical Summary
CVE-2026-42052 is a cross-site scripting vulnerability in beetbox's beets media library management system. Before version 2.10.0, the bundled web UI used Underscore.js template interpolation mode <%= ... %> to insert untrusted metadata fields without HTML escaping, resulting in raw insertion of potentially malicious markup. This output was then inserted into the DOM using .html(...), enabling active attacker-controlled content execution. The issue was resolved by correcting the template usage in version 2.10.0 to properly escape untrusted input.
Potential Impact
An attacker could exploit this vulnerability by injecting malicious scripts into metadata fields that are rendered in the web UI, potentially leading to execution of arbitrary scripts in the context of the user's browser. This could result in actions such as session hijacking or unauthorized actions within the web UI. The vulnerability requires user interaction (UI:P) and has a medium severity score (6.0). There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability has been patched in beets version 2.10.0. Users and administrators should upgrade to version 2.10.0 or later to remediate this issue. No other specific mitigations are indicated by the vendor advisory.
CVE-2026-42052: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in beetbox beets
Description
Beets is the media library management system. Prior to version 2.10.0, 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. This issue has been patched in version 2.10.0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42052 is a cross-site scripting vulnerability in beetbox's beets media library management system. Before version 2.10.0, the bundled web UI used Underscore.js template interpolation mode <%= ... %> to insert untrusted metadata fields without HTML escaping, resulting in raw insertion of potentially malicious markup. This output was then inserted into the DOM using .html(...), enabling active attacker-controlled content execution. The issue was resolved by correcting the template usage in version 2.10.0 to properly escape untrusted input.
Potential Impact
An attacker could exploit this vulnerability by injecting malicious scripts into metadata fields that are rendered in the web UI, potentially leading to execution of arbitrary scripts in the context of the user's browser. This could result in actions such as session hijacking or unauthorized actions within the web UI. The vulnerability requires user interaction (UI:P) and has a medium severity score (6.0). There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability has been patched in beets version 2.10.0. Users and administrators should upgrade to version 2.10.0 or later to remediate this issue. No other specific mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-23T16:05:01.710Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f8dc9fcbff5d86103c00f6
Added to database: 5/4/2026, 5:51:27 PM
Last enriched: 5/4/2026, 6:07:19 PM
Last updated: 5/5/2026, 5:55:50 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.