# CVE-2026-49338: Subsonic API: any authenticated user can delete or read any other user's playlist (IDOR)

> Authenticated users can delete or read any other user's private playlists due to missing per-resource authorization checks in the Subsonic API.

- **Severity:** High 7.1 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Jun 2026
- **Updated:** 23 Jun 2026
- **Also known as:** GHSA-hmgp-w9jm-vp95, GO-2026-5830

## What is CVE-2026-49338?

CVE-2026-49338 is a high-severity missing authorization vulnerability in sentriz gonic, published on 19 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

gonic is a music streaming server / free-software subsonic server API implementation. Prior to version 0.21.0, the Subsonic API endpoints `/rest/deletePlaylist.view` and `/rest/getPlaylist.view` perform no per-resource authorization. Once authenticated as any user (admin or not), an attacker can delete any playlist owned by any other user (including admin) by passing its `id` and read the full contents (name, comment, song list) of any other user's **private** (non-public) playlist by passing its `id`. The Subsonic playlist `id` is `base64url("<userID>/<filename>.m3u")`. Because filenames are user-supplied or time-derived and the `userID` is a small integer, IDs are guessable and frequently exposed (e.g. a previously-public playlist that was later made private still has the same ID). This breaks the multi-user trust boundary of gonic: a low-privileged user can wipe an administrator's curated playlists, and a user can exfiltrate any private playlist they obtain an ID for. The issue was fixed in commit `6dd71e6a3c966867ef8c900d359a7df75789f410`, which is part of version 0.21.0.

Weakness: CWE-639 (Authorization Bypass Through User-Controlled Key), CWE-285 (Improper Authorization)

## Which versions are affected by CVE-2026-49338?

3 open source packages ship an affected version, including go.senan.xyz/gonic.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `go.senan.xyz/gonic` | Go | All versions | 0.21.0 |
| `go.senan.xyz/gonic` | Go | All versions | 0.21.0 |
| `go.senan.xyz/gonic` | Go | All versions | 0.21.0 |

## How do I fix CVE-2026-49338?

Upgrade go.senan.xyz/gonic to 0.21.0 or later.

## Is CVE-2026-49338 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49338 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-49338 and fix it if it is affected.

What it is: CVE-2026-49338 is a high-severity missing authorization vulnerability in sentriz gonic, published on 19 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49338 exists.

Affected packages and fixed versions:
- go.senan.xyz/gonic (Go): affected all versions; fixed in 0.21.0
- go.senan.xyz/gonic (Go): affected all versions; fixed in 0.21.0
- go.senan.xyz/gonic (Go): affected all versions; fixed in 0.21.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-49338/ (Markdown: https://insights.sbomify.com/CVE-2026-49338/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-49338
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-49338
- OSV: https://osv.dev/vulnerability/CVE-2026-49338

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-49338/
Summaries are generated and may contain mistakes; the official description above is the record.
