Skip to main content
Vulnerability Database/CVE-2026-97061

CVE-2026-97061: Black Candy Auth Bypass Vulnerability

CVE-2026-97061 is an authentication bypass flaw in Black Candy through version 3.2.1 that allows authenticated users to enumerate all playlists on the instance. This post explains its impact, affected versions, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97061 Overview

CVE-2026-97061 is an information disclosure vulnerability in Black Candy, an open-source self-hosted music streaming server, affecting versions through 3.2.1. The flaw resides in the playlist search functionality, which fails to scope queries to the authenticated session user. Any authenticated user can enumerate playlists belonging to other users on the instance by querying the SearchController or Search::PlaylistsController endpoints. The weakness is categorized as Missing Authorization [CWE-862].

Critical Impact

Authenticated users can enumerate playlist names across all accounts on a Black Candy instance, breaking tenant isolation and exposing potentially sensitive user-curated metadata.

Affected Products

  • Black Candy music streaming server
  • All versions up to and including 3.2.1
  • Self-hosted deployments exposing the search endpoints to multiple users

Discovery Timeline

  • 2026-09-24 - CVE-2026-97061 published to NVD
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-97061

Vulnerability Analysis

Black Candy exposes two routes for playlist search: SearchController and Search::PlaylistsController. Both endpoints invoke the shared searchable_concern module that performs a model-level query against the Playlist records. The query filters on the search term but omits any scoping clause that constrains results to the current session user. An authenticated attacker can submit a blank or targeted search parameter and receive playlist names owned by any user on the instance. The exposure is limited to playlist metadata rather than audio content or credentials, but it still breaks the expected multi-user isolation boundary.

Root Cause

The root cause is a missing authorization check in the search pipeline. The controllers rely on authentication alone to gate the endpoint and do not pass the session user into the query scope. As a result, the resulting ActiveRecord query returns every playlist that matches the search term, regardless of ownership. This pattern maps directly to CWE-862: Missing Authorization. Review the implementation in the BlackCandy Searchable Concern Code for the vulnerable query construction.

Attack Vector

Exploitation requires a valid low-privileged account on the target instance. The attacker issues an HTTP GET request to the search endpoint with an empty or wildcard-like q parameter and parses the JSON or HTML response for playlist names. No special tooling is needed; a browser or curl command is sufficient. Technical references including the VulnCheck Advisory on Black Candy and GitHub Issue #463 document the behavior.

No verified exploit code is published. See the BlackCandy Search Controller Code and BlackCandy Playlists Controller Code for the affected request handlers.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-97061

Indicators of Compromise

  • Unusual volumes of GET requests to /search or /search/playlists from a single authenticated session
  • Repeated search requests with blank, single-character, or wildcard-style q parameters
  • Session activity that enumerates results without subsequent playback or playlist interaction

Detection Strategies

  • Instrument application logs to capture the authenticated user ID alongside each search request and alert on broad or empty query strings
  • Correlate response payload sizes with the number of playlists returned to identify enumeration patterns
  • Review web server access logs for scripted request cadence against the search endpoints

Monitoring Recommendations

  • Forward Rails application and reverse-proxy logs into a centralized analytics platform for query-pattern baselining
  • Track per-account search request rates and flag outliers that exceed normal user behavior
  • Monitor for new or unexpected service accounts performing repeated search queries

How to Mitigate CVE-2026-97061

Immediate Actions Required

  • Restrict Black Candy access to trusted users until a patched release is deployed
  • Audit existing accounts and disable any that are inactive or unknown
  • Review playlist contents and rename any entries whose names could reveal sensitive information

Patch Information

At publication time, no fixed version is referenced in the NVD data for releases after 3.2.1. Track the GitHub BlackCandy Repository and GitHub Issue #463 for upstream remediation. Apply the official patch as soon as it is released and verify that playlist search queries are scoped to the authenticated session user.

Workarounds

  • Modify the searchable_concern query to scope playlist results to current_user.playlists before applying the search term
  • Place Black Candy behind a reverse proxy that restricts the /search and /search/playlists endpoints to single-tenant deployments
  • Operate separate Black Candy instances per user or trust boundary where multi-tenant isolation is required
bash
# Example reverse-proxy restriction (nginx)
location ~ ^/search(/playlists)?$ {
    allow 10.0.0.0/24;   # trusted admin subnet
    deny all;
    proxy_pass http://blackcandy_upstream;
}

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.