Upstream 0.65.1 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](https://github.com/navidrome/navidrome/pull/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](https://github.com/navidrome/navidrome/pull/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](https://github.com/navidrome/navidrome/pull/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](https://github.com/navidrome/navidrome/pull/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](https://github.com/navidrome/navidrome/pull/6413) by [@ump45nose](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-3hm7-69hm-4hf2), [af8d557b9](https://github.com/navidrome/navidrome/commit/af8d557b9)) Reported by [@dylanzonix](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-p925-5546-cm9h), [3238825c8](https://github.com/navidrome/navidrome/commit/3238825c8)) Reported by [@fonsow](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-gx9x-2w9v-v2xp), [5bcd989bc](https://github.com/navidrome/navidrome/commit/5bcd989bc)) Reported by [@espro](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-m3j8-3976-825c), [a0c0992b4](https://github.com/navidrome/navidrome/commit/a0c0992b4), [#6505](https://github.com/navidrome/navidrome/pull/6505), [#6506](https://github.com/navidrome/navidrome/pull/6506)) Reported by [@hwi-yong](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-gp4g-w3gv-xx8j), [74f60e987](https://github.com/navidrome/navidrome/commit/74f60e987)) Reported by [@chrisdebian](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-qr9q-rh4p-x3wh), [fb93a4cfa](https://github.com/navidrome/navidrome/commit/fb93a4cfa)) Reported by [@thaidn](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-8957-8hcp-m77v), [fb93a4cfa](https://github.com/navidrome/navidrome/commit/fb93a4cfa)) Reported by [@senti-man](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-mr2v-g4gx-px4m), [afaabcba9](https://github.com/navidrome/navidrome/commit/afaabcba9)) Reported by [@d3do-23](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-p6mr-46rr-2q46), [62256712f](https://github.com/navidrome/navidrome/commit/62256712f)) Reported by [@Hama1cco](https://github.com/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](https://github.com/navidrome/navidrome/security/advisories/GHSA-f5v9-r3r2-225c), [f4cc73396](https://github.com/navidrome/navidrome/commit/f4cc73396)) Reported and fixed by [@kgarner7](https://github.com/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](https://github.com/navidrome/navidrome/pull/6576) by [@deluan](https://github.com/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](https://github.com/navidrome/navidrome/pull/6415) by [@ump45nose](https://github.com/ump45nose)) - Redact the Last.fm API key and secret and the Prometheus password in the debug configuration dump. ([#6233](https://github.com/navidrome/navidrome/pull/6233) by [@deluan](https://github.com/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](https://github.com/navidrome/navidrome/pull/6545)) | `scan` | | New | `UIAppendRemixers` | Show remixers after the track artists in the UI Artist column. Set to `false` to hide them. ([#6504](https://github.com/navidrome/navidrome/pull/6504)) | `true` | | New | `Scanner.RespectNoMedia` | Skip folders (and their subfolders) that contain a `.nomedia` file. ([#6139](https://github.com/navidrome/navidrome/pull/6139)) | `false` | | New | `LastFM.MinScrobbleDuration` | Songs at or below this duration are not scrobbled to Last.fm. `0` scrobbles all songs. ([#5992](https://github.com/navidrome/navidrome/pull/5992)) | `30s` | | New | `Plugins.MaxTaskDuration` | Upper limit for the run time of a plugin task. ([#6546](https://github.com/navidrome/navidrome/pull/6546)) | `1h` | | Changed | `Agents` | `lastfm` is removed from the default. ([#6571](https://github.com/navidrome/navidrome/pull/6571)) | `deezer,listenbrainz` | | Changed | `PID.Album` | `releasedate` is removed from the default, for new libraries only. ([#6473](https://github.com/navidrome/navidrome/pull/6473)) | `musicbrainz_albumid\|albumartistid,album,albumversion` | | Deprecated | `RecentlyAddedByModTime` | Use `RecentlyAddedBy`. `true` maps to `modtime`. ([#6545](https://github.com/navidrome/navidrome/pull/6545)) | - | For a complete list of all configuration options, see the [Configuration Options](https://www.navidrome.org/docs/usage/configuration-options/) documentation. ## UI - Add a "Played" filter to the album list. ([#6207](https://github.com/navidrome/navidrome/pull/6207) by [@daviddavo](https://github.com/daviddavo)) - Add Solarized Light and Solarized Dark themes. ([#6280](https://github.com/navidrome/navidrome/pull/6280) by [@Rucolastico](https://github.com/Rucolastico)) - Add the Cave theme. ([#6374](https://github.com/navidrome/navidrome/pull/6374) by [@tcarrondo](https://github.com/tcarrondo)) - Add a Date Format setting, to show dates in the format of the UI language or of the browser. ([#6263](https://github.com/navidrome/navidrome/pull/6263) by [@deluan](https://github.com/deluan)) - Add a volume control to the share player. ([#6451](https://github.com/navidrome/navidrome/pull/6451) by [@deluan](https://github.com/deluan)) - Add the `UIAppendRemixers` option, to hide remixers from the Artist column. ([#6504](https://github.com/navidrome/navidrome/pull/6504) by [@deluan](https://github.com/deluan)) - Show each performer sub-role (for example, each instrument) on its own row in Get Info. ([#6526](https://github.com/navidrome/navidrome/pull/6526) by [@deluan](https://github.com/deluan)) - Show read-only values in edit forms as dimmed inputs that match the theme. ([#6238](https://github.com/navidrome/navidro …