github navidrome/navidrome v0.65.0

58 minutes ago

This release fixes ten security vulnerabilities reported through our GitHub Security Advisory program, so please upgrade as soon as you can. Docker images now also have an official home on Docker Hub: navidrome/navidrome. The deluan/navidrome and GHCR images are still published with the same tags, so you can switch whenever you like.

This release also adds OpenSubsonic API key authentication, so clients can sign in with a revocable per-player key instead of your password, and per-library Persistent ID settings, so each library can group albums its own way without re-tagging. Albums in Recently Added are now ordered by when Navidrome first found them, and plugins get streams for working with large files and HTTP bodies without loading them into memory. There are also three new themes, a Date Format setting, internet radio in the Jellyfin API, and many fixes across transcoding, playlists, search and the UI.

⚠️ Breaking Changes / Migration Notes

  • Last.fm is no longer a default metadata agent. The default Agents value is now deezer,listenbrainz, because Last.fm is changing its API so that free API keys can only scrobble. Last.fm scrobbling is not affected. If your API key still has metadata access, add lastfm back to Agents. (#6571)
  • Recently Added now uses the scan time by default. Before, an album's "date added" was the oldest birth time of its files, so albums with old files that were only recently added did not show at the top. The new RecentlyAddedBy option (scan, birth or modtime) controls this for albums and songs, and for the Subsonic and Jellyfin created timestamps. RecentlyAddedByModTime is deprecated: true maps to modtime. (#6545)
  • New default album Persistent ID, for new libraries only. The default PID.Album no longer includes releasedate, so albums that mix M4A or WMA files with MP3 or FLAC files are no longer split in two. Existing libraries keep the old spec as a per-library override, so their album IDs do not change. To regroup a library with mixed formats, clear its "Album grouping" override in the library settings. This starts a full rescan of that library. (#6473)
  • Movement number and count need a full scan. They are now read from ID3 MVIN and MP4 tags, but existing files only get them after a full scan. (#6357)
  • setRating rejects values outside 0 to 5, as the Subsonic spec says. Before, any integer was stored and could skew the average rating other users see. (#6413 by @ump45nose)

Security

This release fixes several reported vulnerabilities. We thank the security researchers who responsibly disclosed them.

  • Reverse-proxy authentication accepted on cross-site requests. With ExtAuth enabled, any web page the user visited could send requests that the proxy signed in, so it could create admin accounts and read data through Subsonic JSONP. The native and Subsonic APIs now ignore the proxy user header on requests started by another site, and the Subsonic API also ignores it for JSONP. Medium, CVSS 6.8. (GHSA-3hm7-69hm-4hf2, af8d557b9) Reported by @dylanzonix.
  • Stored XSS through non-image artwork files. A cover or artist image in the music folder that was really HTML or SVG was served with a type the browser could run as a page in the Navidrome origin. Artwork responses now keep the content type only when it is an image, and send a sandbox Content Security Policy. Medium, CVSS 6.8. (GHSA-p925-5546-cm9h, 3238825c8) Reported by @fonsow.
  • SQL injection through an admin-created user ID. Creating a user kept a client-supplied id, and some queries placed the logged-in user's ID directly in the SQL text. The server now always generates user IDs, and those queries bind the IDs as SQL arguments. Medium, CVSS 6.5. (GHSA-gx9x-2w9v-v2xp, 5bcd989bc) Reported by @espro.
  • Memory exhaustion through M3U playlist import. A playlist upload had no size or entry limit, so one large file could make the server run out of memory. Uploads are now limited to 32 MiB and 50,000 entries. Other playlist endpoints and JSON request bodies (play queue, Quick Connect, admin routes) are also bounded now. Medium, CVSS 6.5. (GHSA-m3j8-3976-825c, a0c0992b4, #6505, #6506) Reported by @hwi-yong.
  • No message size limit on the Jellyfin API WebSocket. A signed-in user could send very large messages to /socket and exhaust server memory. Messages are now limited to 64 KiB. Medium, CVSS 6.5. (GHSA-gp4g-w3gv-xx8j, 74f60e987) Reported by @chrisdebian.
  • Arbitrary file deletion through the radio image field. An admin could set a radio station's image to a path outside the image folder, and replacing or deleting that image removed the target file. The radio REST API no longer lets clients set the uploaded image path. Medium, CVSS 5.5. (GHSA-qr9q-rh4p-x3wh, fb93a4cfa) Reported by @thaidn.
  • Non-admin users could change radio cover images. The admin check ran after the image file was already written or deleted. The check now runs first. Medium, CVSS 4.3. (GHSA-8957-8hcp-m77v, fb93a4cfa) Reported by @senti-man.
  • Jukebox skipped the per-user library filter. With the jukebox enabled for non-admin users, tracks from libraries the user cannot see could be loaded, exposing their metadata. Tracks are now loaded with the requesting user's library access. Low, CVSS 3.1. (GHSA-mr2v-g4gx-px4m, afaabcba9) Reported by @d3do-23.
  • getAvatar exposed other users' Gravatar hashes. With EnableGravatar on, it redirected to Gravatar for any username, which leaked the email hash and confirmed that the username exists. It now answers only for the logged-in user. Low, CVSS 3.1. (GHSA-p6mr-46rr-2q46, 62256712f) Reported by @Hama1cco.
  • Plugin storage limit ignored key size. A plugin could store many keys with empty values and grow its storage past maxSize. Keys now count toward the limit. Low, CVSS 2.3. (GHSA-f5v9-r3r2-225c, f4cc73396) Reported and fixed by @kgarner7.
  • Limit sidecar lyrics files to 1 MiB, so a huge .lrc file next to a song can no longer make the server run out of memory. Larger files are ignored with a warning. (#6576 by @deluan)
  • Apply the library scope to every artist search path, so search3 with musicFolderId no longer returns artists that exist only in another library. (#6415 by @ump45nose)
  • Redact the Last.fm API key and secret and the Prometheus password in the debug configuration dump. (#6233 by @deluan)

Note: The advisories linked above are still in draft on GitHub at the time of writing. Their links will become publicly accessible once the advisories are published. The fixes themselves are already included in this release.

Configuration Changes

Status Option Description Default
New RecentlyAddedBy Which date sets "recently added" for albums and songs: scan, birth or modtime. (#6545) scan
New UIAppendRemixers Show remixers after the track artists in the UI Artist column. Set to false to hide them. (#6504) true
New Scanner.RespectNoMedia Skip folders (and their subfolders) that contain a .nomedia file. (#6139) false
New LastFM.MinScrobbleDuration Songs at or below this duration are not scrobbled to Last.fm. 0 scrobbles all songs. (#5992) 30s
New Plugins.MaxTaskDuration Upper limit for the run time of a plugin task. (#6546) 1h
Changed Agents lastfm is removed from the default. (#6571) deezer,listenbrainz
Changed PID.Album releasedate is removed from the default, for new libraries only. (#6473) musicbrainz_albumid|albumartistid,album,albumversion
Deprecated RecentlyAddedByModTime Use RecentlyAddedBy. true maps to modtime. (#6545) -

For a complete list of all configuration options, see the Configuration Options documentation.

UI

  • Add a "Played" filter to the album list. (#6207 by @daviddavo)
  • Add Solarized Light and Solarized Dark themes. (#6280 by @Rucolastico)
  • Add the Cave theme. (#6374 by @tcarrondo)
  • Add a Date Format setting, to show dates in the format of the UI language or of the browser. (#6263 by @deluan)
  • Add a volume control to the share player. (#6451 by @deluan)
  • Add the UIAppendRemixers option, to hide remixers from the Artist column. (#6504 by @deluan)
  • Show each performer sub-role (for example, each instrument) on its own row in Get Info. (#6526 by @deluan)
  • Show read-only values in edit forms as dimmed inputs that match the theme. (#6238 by @deluan)
  • Fix the saved queue not playing after reopening the browser. (#6524 by @deluan)
  • Remember the player play mode across reloads. (#6433 by @deluan)
  • Fix an unwanted seek when the progress bar handle gets focus, and a play/pause edge case in the player. (#6416 by @deluan, #6510 by @alannnna)
  • Skip the login form when you are already signed in. (#6459 by @kris-anderson)
  • Show the song list "Date added" column with the same date the list sorts by. (#6555 by @deluan)
  • Honor EnableCoverAnimation for theme cover animations. (#6234 by @mvanhorn)
  • Fix the playlist list crashing when rows lose their record, and overflowing on mobile. (#6250, #6376 by @deluan)
  • Make the playlist toggle switches visible in all themes. (#6277 by @deluan)
  • Make the Undo and AMusic theme Save buttons readable. (#6249 by @deluan)
  • Highlight the current page in the Dark and Ligera theme paginators. (#6565 by @deluan)
  • Show 1 MB instead of 1024 KB for file sizes. (#6469 by @SwastikTripathi)
  • Stop the user edit form from saying that libraries can be left empty. (#6539 by @deluan)

Scanner

  • Add per-library Persistent ID settings. Each library can override the global PID.Album and PID.Track in the library edit screen (Use global, Folder or Custom). Only a library whose setting changes gets a full rescan. (#6252 by @deluan)
  • Add the Scanner.RespectNoMedia option, to skip folders that contain a .nomedia file. Adding or removing a .nomedia file needs a manual scan. (#6139 by @deluan)
  • Speed up the lookup for tracks moved between libraries. (#6463 by @deluan)
  • Respect Scanner.FollowSymlinks in scans started by the file watcher. (#6293 by @deluan)
  • Map TagLib's initialkey tag (MP3 TKEY, M4A and FLAC INITIALKEY) to the key tag. (c9c70c952 by Pujitha Paladugu)
  • Register .webm files as audio/webm. (#6230 by @deluan)

Transcoding and Streaming

  • Cap DSD transcoded to FLAC or WAV at 88.2kHz for clients that do not declare a sample rate limit, because many clients cannot play 352.8kHz. Also fix probed DSD files that came out at 44.1kHz. (#6367 by @junkerderprovinz)
  • Declare the duration in uncached MP3 transcodes, so players do not have to guess it. (#6218 by @deluan)
  • Fix broken downloads when an uncached transcode sends an estimated Content-Length, and return 200 on HEAD requests. (#6449 by @deluan)
  • Honor an explicitly requested lossless format for lossy files. (#6472 by @deluan)
  • Honor an explicit download format over the player's transcoding settings. (#6446 by @deluan)
  • Use a sample rate that the MP3 and AAC encoders accept. (#6518 by @deluan)
  • Reuse cached transcodes for share streams and zip downloads. (#6262 by @deluan)

Subsonic API

  • Add the OpenSubsonic API key authentication extension. Each player can have its own key, which you can revoke at any time. (#6219 by @deluan, based on earlier work by @amCap1712)
  • Fix search3 returning short pages of artists for users who cannot see every library. (#6542 by @deluan)
  • Fix artist song and album counts in library-scoped searches, which were summed across all libraries. (#6434 by @deluan)
  • Keep the current track of a saved play queue when earlier tracks are no longer available. (#6299 by @deluan)
  • Omit image URLs for similar artists that are not in the library, instead of sending URLs that always fail. (#6538 by @kris-anderson)

Jellyfin API

  • Expose internet radio stations as Live TV radio channels. (#6528 by @deluan)
  • Honor the likes flag on /Rating, instead of clearing the rating, and add the POST .../UserData endpoints. (#6315 by @deluan)
  • List the user's libraries at the /Items user root. (#6214 by @zapisanchez)
  • Honor every value of repeated list parameters. (#6414 by @ump45nose)
  • Fix PlaybackInfo stalling on slow lyrics plugins. (97df50888 by duongynhi000005-oss)
  • Fix a server error when /Items gets a negative StartIndex. (#6366 by @santhiprakash)

Playlists

  • Drop unknown track IDs when adding tracks to a playlist. (#6313 by @deluan)
  • Map removal indexes onto the visible track list, so the right song is removed. (#6468 by @chrisdebian)
  • Include co-credited album artists when adding an artist to a playlist. (#6241 by @DawidKrynski)
  • Keep empty nested groups in smart playlist rules. (#6438 by @kukirin-ui)
  • Honor AlbumPlayCountMode when smart playlists filter by albumPlayCount. (#6554 by @ump45nose)

Scrobbling and Metadata

  • Add the LastFM.MinScrobbleDuration option. (#5992 by @timonet7)
  • Unlink a Last.fm account when Last.fm rejects its session key, so the user can link it again. (#5876 by @quepasaquepasa)
  • Record the local play count even when external scrobbling is off for the player. (#6387 by @kgarner7)
  • Keep the ListenBrainz retry queue when a plugin named listenbrainz is removed. (#6479 by @deluan)
  • Log a failed now-playing update once, as a warning. (#6530 by @kris-anderson)
  • Stop refreshing artist and album info right after it is fetched for the first time. (#6527 by @deluan)

Lyrics

  • Cache plugin lyrics lookups for all APIs, so clients that ask for the lyrics of a full album do not call the plugin again for each track. (#6465 by @deluan)
  • Speed up lyrics requests. The scanner now records which external lyrics files each folder has, so a request no longer tries to open every possible lyrics file name. (#6535 by @mrsobakin)
  • Match external lyrics files whose names use a different Unicode normalization. (#6062 by @56steve)

Plugins

  • Add streams for plugins. A plugin can read or write a file or an HTTP body in small pieces, so its memory stays flat even for very large data. New host functions: Storage.Open, Storage.Create and HTTP.Execute. (#6546, #6562, #6570 by @deluan)
  • Pass the requesting username to similar-songs requests, so plugins can give personal recommendations. (#6514 by @mrsobakin)
  • Free host response memory in the generated Go and Rust clients, so plugins that make many host calls no longer grow in memory. (#6547 by @deluan)
  • Stop updating the users' last access time for internal plugin calls. (#6501 by @nenadjokic)
  • Skip the startup plugin error reset when no plugin has an error. (#6223 by @deluan)

Server

  • Add the folder cover image to downloaded zips. (#6224 by @deluan)
  • Report more anonymous Insights data: Jellyfin API use, ffmpeg and mpv versions, database size, scan timing and library totals. (#6581 by @deluan)
  • Give admins every library and every genre, even when their library assignments are missing. Before, getMusicFolders, getArtists and getGenres could return nothing for them. (#6503, #6502 by @deluan)
  • Fix albums tagged with only a date or year sorting at one end of the list when sorted by release date. (#6577 by @deluan)
  • Send Content-Length on artwork responses, and abort truncated artwork responses so clients do not cache a broken image. (#6556 by @avdept, #6572 by @deluan)
  • Keep covers current when image files change while the artwork worker reads them. (#6557 by @deluan)
  • Exit with an error code when the server fails to start, so service managers can restart it. (#6236 by @deluan)
  • Fix startup failing with database is locked when another process holds the write lock. (#6457 by @deluan)
  • Don't crash the server when a playlist's tracks cannot be loaded for its cover. (#6267 by @deluan)
  • Give same-named albums their own folder in artist zips. (#6225 by @deluan)
  • Skip the HTTP response cache for non-GET requests. (#6531 by @kris-anderson)
  • Keep the player IP when the remote address has no port. (#6464 by @Makario1337)
  • Show clear errors for invalid library paths. (#5919 by @junkerderprovinz)
  • Refuse to restore a backup file that is not a Navidrome database. (#6296 by @DawidKrynski)

Packaging

  • Publish Docker images to the new official navidrome/navidrome repository on Docker Hub. deluan/navidrome and GHCR still get the same images and tags. (#6327 by @deluan)
  • Skip the /etc/skel copy when the Linux packages create the navidrome user, to prevent SELinux denials. (#6364 by @santhiprakash)

Translations

Experimental Features

  • Add the first parts of the new Navidrome API v1: an OpenAPI-first /api/v1 with authentication through revocable grants. It is off by default, behind DevAPIv1, and subject to change, as it is a Work In Progress. See the API v1 documentation. (#6227, #6245 by @deluan)

New Contributors

Full Changelog: v0.64.2...v0.65.0

Helping out

This release is only possible thanks to the support of some awesome people!

Want to be one of them?
You can sponsor, pay me a Ko-fi, or contribute with code.

Where to go next?

Don't miss a new navidrome release

NewReleases is sending notifications on new releases.