/

CVE-2026-54493

Severity:

HIGH RISK

(7.7)

SSRF (CWE-918) in Koel Subsonic Radio Stream Proxy

CVE-2026-54493

Deferred

Vulnerability type

Category:

Server-Side Request Forgery

CWE:

CWE-918

Impact:

Unauthorized access to internal network resources

Severity:

HIGH RISK

(7.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Koel's Subsonic-compatible internet radio routes accept authenticated users' stream URLs without applying the URL and content-type checks used by the regular radio API. When the server later proxies the stored URL, an attacker may cause Koel to request internal services that are reachable from the server.

Affected context

The vulnerability occurs in Koel deployments that expose the Subsonic-compatible internet radio creation or update routes and allow an authenticated user to control a stored stream URL. The URL is later processed by the radio streaming proxy without equivalent destination and response validation, so the Koel server may connect to loopback, private-network, container, metadata, or other internally reachable HTTP services.

Exploit preconditions

  • Attack surface: Subsonic-compatible internet radio creation and update routes, followed by the radio streaming endpoint
  • Required access: An authenticated Koel account with permission to create or modify an internet radio station
  • Trigger point: Server-side opening and proxying of the stored streamUrl
  • Why exploitation is possible: The Subsonic request paths do not apply the same safe-URL and audio-content-type checks as the regular radio API, allowing user-controlled destinations to reach the server-side stream proxy

Why this happens

The underlying bug is inconsistent validation of equivalent input paths. The Subsonic request handlers accept a user-controlled URL and pass it to a server-side proxy that opens the URL directly, without enforcing destination restrictions before the outbound request.

This maps to CWE-918: Server-Side Request Forgery, where an application makes network requests based on attacker-influenced input and thereby exposes the application's network position and privileges.

Potential impact

  • An attacker may access HTTP services bound to the Koel host or internal networks
  • The vulnerability could expose cloud or container metadata endpoints
  • Internal service responses may be returned through the streaming endpoint
  • Attackers may use reachable administrative or unauthenticated services for further compromise
  • Sensitive network topology, credentials, or service data could be disclosed

General mitigation guidance

Mitigation generally focuses on treating every user-supplied URL as untrusted and applying consistent outbound-request controls across all API variants.

Common defensive patterns include:

  • Reuse centralized safe-URL validation for every route that accepts a stream URL
  • Resolve hostnames and reject loopback, link-local, multicast, RFC1918, RFC6598, and other prohibited destinations
  • Recheck the destination after redirects and prevent DNS rebinding
  • Restrict outbound traffic using network-level egress policies and allowlists
  • Validate the upstream scheme, port, response type, and response size before proxying content
  • Avoid returning arbitrary upstream response bodies to clients
  • Run the application with minimal network and system privileges

How teams detect issues like this

Detection can combine code analysis, request monitoring, and network policy enforcement.

Useful approaches include:

  • Static analysis rules for network APIs such as fopen, HTTP clients, or stream wrappers receiving request-derived URLs
  • Code review checks for inconsistent validation between REST, compatibility, and alternate protocol handlers
  • Tests that verify rejection of loopback, private, link-local, metadata, and redirected destinations
  • Monitoring outbound requests from Koel for unusual internal IP ranges, metadata hostnames, or unexpected ports
  • Egress firewall policies that alert on or block application traffic to restricted network segments
  • Automated security review tools that identify server-side URL fetches and missing destination validation

Sources

SourceLink
github.comgithub.com/koel/koel/commit/1331f335342b405e60ffabdd60f1f398508f996f
github.comgithub.com/koel/koel/pull/2545
github.comgithub.com/koel/koel/releases/tag/v9.7.0
github.comgithub.com/koel/koel/security/advisories/GHSA-6p96-cfg5-4vhp

Frequently asked

questions

It may be exploitable through the Koel application by an authenticated user who can create or update an internet radio station. The attacker does not necessarily need direct access to the Koel server or internal network.

The key requirement is an authenticated account with access to the affected Subsonic-compatible radio operations. Exploitability also depends on which internal services and network destinations are reachable from the Koel server.

Apply centralized SSRF protections to every user-controlled URL before making an outbound request. This should include destination allowlisting or robust private-address blocking, redirect validation, and network-level egress restrictions.

Use one shared URL-validation policy across all API surfaces, test alternate protocol handlers, monitor outbound application traffic, and run the service with least-privilege network access.

Find out what's already
exploitable in your codebase.