CVE-2026-25578: Navidrome has XSS via comment from song metadata
Summary An XSS vulnerability in the frontend allows a malicious attacker to inject code through the comment metadata of a song to exfiltrate user credentials. An attacker's maliciously crafted song has to be added to Navidrome to exploit the vulnerability. Details The frontend is using React. In various places, the code uses the dangerouslySetInnerHTML escape hatch to set the content of an HTML element.
Published Feb 4, 2026 · Updated Feb 5, 2026
Affected packages
github.com/navidrome/navidrome
- Ecosystem
- Go
- Affected
- < 0.60.0
- Fixed in
- 0.60.0
- Check
go list -m github.com/navidrome/navidrome
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
An XSS vulnerability in the frontend allows a malicious attacker to inject code through the comment metadata of a song to exfiltrate user credentials.
An attacker's maliciously crafted song has to be added to Navidrome to exploit the vulnerability.
Details
The frontend is using React. In various places, the code uses the dangerouslySetInnerHTML escape hatch to set the content of an HTML element.
In some places, the value is first sanitized by removing anything looking like an HTML tag. In at least one place the value is used as is, thus leading to the XSS vulnerability.
In MultiLineTextField component, the input is split into lines and rendered through the dangerouslySetInnerHTML property.
This component is then used in the SongInfo and AlbumInfo components, when rendering the comment of the song or album. The contents of the comments field is taken verbatim from the metadata of a song, such as the VORBIS COMMENT comment of a FLAC file.
By crafting the contents of the comment field, an attacker can inject code into the frontend, which runs whenever a user views the song or album info.
Additionally, as the Navidrome API token is kept in local storage and since there's no CSP in place unless the user's configured one outside of Navidrome, the attacker can exfiltrate the API token.
PoC
- Modify the comment field of a song to contain the following payload using a tool like MusicBrain'z Picard:
or use metaflac:
echo '' | metaflac --set-tag=comment=<(cat) file.flac- Add the song to Navidrome
- Enter the "Songs" or one of the albums page, click the "kebab menu" and then "Get Info"
In this payload, a broken image can be seen in the info dialog.
In the developer tools' network inspector, the request exfiltrating the token to an example domain can be seen.
Impact
The vulnerability affects users of the Navidrome UI with songs from untrusted sources.
Mitigations
- Users of Navidrome should configure a strict [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP) in their reverse-proxy to make exfiltration more difficult
- Users of Navidrome should not index songs from untrusted sources without first vetting their metadata
Credited to AlexGustafsson.
References
- https://github.com/navidrome/navidrome/security/advisories/GHSA-rh3r-8pxm-hg4w
- https://github.com/navidrome/navidrome/commit/d7ec7355c9036d5be659d6ac555c334bb5848ba6
- https://github.com/navidrome/navidrome/releases/tag/v0.60.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-25578
- https://github.com/advisories/GHSA-rh3r-8pxm-hg4w
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-25579
Navidrome affected by Denial of Service and disk exhaustion via oversized `size` parameter in `/rest/getCoverArt` and `/share/img/<token>` endpoints
critical9.2Feb 4, 2026CVE-2025-48948
Navidrome Transcoding Permission Bypass Vulnerability Report
high7.4May 29, 2025CVE-2025-48949
Navidrome allows SQL Injection via role parameter
high8.9May 29, 2025CVE-2025-27112
Navidrome allows an authentication bypass in Subsonic API with non-existent username
medium6.9Feb 25, 2025CVE-2024-56362
Navidrome Stores JWT Secret in Plaintext in navidrome.db
high7.1Dec 23, 2024CVE-2024-47062
Navidrome has Multiple SQL Injections and ORM Leak
critical8.8Sep 20, 2024
