MediumGHSA-c3p4-vm8f-386pCVE-2025-27112GO-2025-3484

Navidrome allows an authentication bypass in Subsonic API with non-existent username

Published 25 Feb 2025 · Updated 3 Mar 2025

Is your project on an affected github.com/navidrome/navidrome?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=0.52.0 <0.54.5
Fixed in
0.54.5
Update to the fixed version for your release line, for example:go get github.com/navidrome/navidrome@v0.54.5

Details

Summary

In certain Subsonic API endpoints, authentication can be bypassed by using a non-existent username combined with an empty (salted) password hash. This allows read-only access to the server’s resources, though attempts at write operations fail with a “permission denied” error.

Details

A flaw in the authentication check process allows an attacker to specify any arbitrary username that does not exist on the system, along with a salted hash of an empty password. Under these conditions, Navidrome treats the request as authenticated, granting access to various Subsonic endpoints without requiring valid credentials.

Proof of Concept (PoC)

1. Generate a random salt:

   // e.g., salt = "x1vbudn1m6d"
   Math.random().toString(36).substring(2, 15)

2. Calculate the MD5 hash of an empty password plus the salt:

   # Using the example salt above
   echo -n "x1vbudn1m6d" | md5sum
   81f0c0fb5d202ab0d012e6eaeb722d79  -

3. Send a request specifying a fake user, with the hash and salt values:

   GET https://[host]/rest/getPlaylists?u=FakeUser&t=81f0c0fb5d202ab0d012e6eaeb722d79&s=x1vbudn1m6d&v=1.16.1&c=castafiore&f=json

Impact

An attacker can use any non-existent username to bypass the authentication system and gain access to various read-only data in Navidrome, such as user playlists. However, any attempt to modify data fails due to insufficient permissions, limiting the impact to unauthorized viewing of information.

Is GHSA-c3p4-vm8f-386p in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/navidrome/navidrome, and gives you the command that fixes it.

More advisories for github.com/navidrome/navidrome

  • LowCVE-2026-25579Navidrome affected by Denial of Service and disk exhaustion via oversized `size` parameter in `/rest/getCoverArt` and `/share/img/<token>` endpoints in github.com/navidrome/navidrome · 5 Feb 2026
  • LowCVE-2026-25578Navidrome has XSS via comment from song metadata in github.com/navidrome/navidrome · 5 Feb 2026
  • CriticalCVE-2026-25579Navidrome affected by Denial of Service and disk exhaustion via oversized `size` parameter in `/rest/getCoverArt` and `/share/img/<token>` endpoints · 4 Feb 2026
  • MediumCVE-2026-25578Navidrome has XSS via comment from song metadata · 4 Feb 2026
  • LowCVE-2025-48948Navidrome Transcoding Permission Bypass Vulnerability Report in github.com/navidrome/navidrome · 3 Jun 2025
  • LowCVE-2025-48949Navidrome allows SQL Injection via role parameter in github.com/navidrome/navidrome · 3 Jun 2025
All 21 advisories for github.com/navidrome/navidrome

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.