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

CVE-2026-104058: Podgrab Auth Bypass Vulnerability

CVE-2026-104058 is an authentication bypass flaw in Podgrab that allows attackers to access protected WebSocket routes and hijack user sessions. 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-104058 Overview

CVE-2026-104058 is a missing authentication vulnerability [CWE-306] in Podgrab, a self-hosted podcast management application. The /ws WebSocket route is registered on the root gin engine instead of the BasicAuth-protected router group. Unauthenticated network clients can connect to the endpoint even when the PASSWORD environment variable is configured. Attackers who join the allConnections set can capture PlayerExists broadcasts, extract client-supplied player identifiers, and replay them inside a RegisterPlayer message to hijack queue payloads intended for authenticated users. The resulting disclosure exposes episode IDs, titles, and server-side file paths while potentially disrupting legitimate playback.

Critical Impact

Unauthenticated remote attackers can hijack WebSocket player queues, exposing episode metadata and server-side file paths from authenticated Podgrab users.

Affected Products

  • Podgrab (self-hosted podcast manager)
  • Deployments exposing the /ws WebSocket route to the network
  • Instances with PASSWORD configured for BasicAuth protection

Discovery Timeline

  • 2026-10-01 - CVE-2026-104058 published to the National Vulnerability Database
  • 2026-10-02 - Last updated in NVD database

Technical Details for CVE-2026-104058

Vulnerability Analysis

Podgrab uses the gin web framework to serve its HTTP and WebSocket interfaces. Routes requiring authentication are registered on a router group wrapped with BasicAuth middleware. The /ws WebSocket endpoint, however, is registered directly on the root gin engine. This placement bypasses the BasicAuth check even when operators set the PASSWORD environment variable.

Any network client that can reach the service can open a WebSocket to /ws and join the allConnections set. Once connected, the client receives server broadcasts intended for authenticated users. These broadcasts include PlayerExists messages carrying client-supplied player identifiers.

An attacker captures a valid player identifier from a broadcast. The attacker then sends a RegisterPlayer message using that identifier. The server treats the attacker's socket as the owner of the player session and routes subsequent queue payloads to the attacker.

Root Cause

The root cause is a route registration error. The developer attached the /ws handler to the top-level *gin.Engine instead of the authenticated *gin.RouterGroup. BasicAuth middleware is scoped to the group, so routes outside the group inherit no authentication. This is a classic Missing Authentication for Critical Function flaw tracked under CWE-306.

Attack Vector

Exploitation requires only network access to the Podgrab instance. The attacker completes the WebSocket upgrade without credentials, listens for PlayerExists broadcasts, and replays the observed identifier in a RegisterPlayer frame. The server then streams queue data containing episode IDs, titles, and absolute file paths on the host filesystem. The attacker can also inject messages that disrupt the legitimate client's playback state. Full exploitation details are documented in the VulnCheck advisory and the public proof-of-concept gist.

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-104058

Indicators of Compromise

  • WebSocket upgrade requests to /ws lacking an Authorization: Basic header
  • RegisterPlayer messages originating from source addresses that never completed BasicAuth on other routes
  • Multiple concurrent WebSocket sessions claiming the same player identifier
  • Access logs showing successful HTTP 101 responses on /ws from external or unexpected subnets

Detection Strategies

  • Enable gin request logging and alert on /ws upgrades missing BasicAuth credentials
  • Correlate WebSocket client IPs with authenticated REST API usage to flag anonymous socket connections
  • Inspect packet captures or reverse-proxy logs for RegisterPlayer frames arriving from sources that did not previously issue a PlayerExists broadcast

Monitoring Recommendations

  • Forward Podgrab reverse-proxy access logs to a centralized logging platform for anomaly review
  • Monitor for unusual spikes in concurrent WebSocket connections to the Podgrab host
  • Track outbound disclosure of file paths or episode metadata to untrusted IP ranges

How to Mitigate CVE-2026-104058

Immediate Actions Required

  • Restrict network access to Podgrab using a firewall, VPN, or trusted reverse proxy that enforces authentication on /ws
  • Audit deployed Podgrab instances for exposure of port on the public internet and remove direct exposure
  • Rotate any secrets that may have been observed in episode metadata or file paths

Patch Information

At the time of publication, no vendor-supplied patch is listed in the NVD record. Operators should monitor the VulnCheck advisory and the upstream Podgrab repository for a fix that moves the /ws route registration into the BasicAuth-protected router group.

Workarounds

  • Place Podgrab behind a reverse proxy such as nginx or Caddy that enforces HTTP basic authentication on /ws before proxying the WebSocket upgrade
  • Bind Podgrab to 127.0.0.1 and expose the service only through an authenticated tunnel
  • Apply network segmentation so only trusted client subnets can reach the Podgrab listener
bash
# Example nginx snippet enforcing BasicAuth on the /ws upgrade
location /ws {
    auth_basic "Podgrab";
    auth_basic_user_file /etc/nginx/.podgrab_htpasswd;
    proxy_pass http://127.0.0.1:8080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
}

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.