Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 78%

CVE-2026-42052: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in beetbox beets

0
Medium
VulnerabilityCVE-2026-42052cvecve-2026-42052cwe-79
Published: 05/04/2026 (05/04/2026, 17:06:23 UTC)
Source: CVE Database V5
Vendor/Project: beetbox
Product: 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.

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

beets
pkg:pypi/beets
Affected versions
<2.10.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 14:23:25 UTC

Technical Analysis

The vulnerability in beets before version 2.10.0 involves improper neutralization of input during web page generation (CWE-79). The bundled web UI used Underscore.js template interpolation mode <%= ... %> for untrusted metadata fields, which inserts raw HTML without escaping. Since the rendered output is inserted using .html(...), this allows attacker-controlled markup to execute in the DOM, leading to cross-site scripting. The issue is resolved in beets version 2.10.0.

Potential Impact

An attacker can inject malicious scripts via untrusted metadata fields in the beets web UI, potentially leading to cross-site scripting attacks. This can result in execution of arbitrary scripts in the context of the victim's browser, which may lead to session hijacking, data theft, or other client-side impacts. The CVSS 4.0 score is 6.0 (medium severity), reflecting network attack vector, low attack complexity, and partial user interaction required.

Mitigation Recommendations

Upgrade beets to version 2.10.0 or later, where this vulnerability has been patched. No other specific mitigations are indicated. Patch status is confirmed by the vendor stating the issue is fixed in 2.10.0.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 05/04/2026, 17:51:27 UTC

Last enriched: 06/24/2026, 14:23:25 UTC

Last updated: 08/02/2026, 07:17:57 UTC

Views: 84

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses