{"answers":{"affected":"3 open source packages ship an affected version, including go.senan.xyz/gonic.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49339 exists.","fix":"Upgrade go.senan.xyz/gonic to 0.21.0 or later.","what":"CVE-2026-49339 is a high-severity path traversal 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."},"fix_prompt":"Check this codebase for CVE-2026-49339 and fix it if it is affected.\n\nWhat it is: CVE-2026-49339 is a high-severity path traversal 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49339 exists.\n\nAffected packages and fixed versions:\n- go.senan.xyz/gonic (Go): affected all versions; fixed in 0.21.0\n- go.senan.xyz/gonic (Go): affected all versions; fixed in 0.21.0\n- go.senan.xyz/gonic (Go): affected all versions; fixed in 0.21.0\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49339/ (Markdown: https://insights.sbomify.com/CVE-2026-49339/index.md)","id":"CVE-2026-49339","markdown":"https://insights.sbomify.com/CVE-2026-49339/index.md","name":"CVE-2026-49339","record":{"aliases":["GHSA-2fp4-5v5c-4448","GO-2026-5825"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Music streaming server","requires_auth":"low_privilege","summary":"Authenticated users can bypass ownership checks via path traversal to read or delete other users' playlists and probe host files.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"gonic is a music streaming server / free-software subsonic server API implementation. The maintainer's fix in  commit `6dd71e6a3c966867ef8c900d359a7df75789f410` added an ownership check based on `playlist.UserID`. However, `playlist.UserID` is derived from the first path segment of the attacker-controlled playlist ID, with no path containment on the resolved file path. Any authenticated Subsonic user can therefore bypass the ownership check and read any other user's playlist, delete any other user's playlist, and probe arbitrary file paths on the host for existence/readability. This is a bypass of the boundary the `6dd71e6` fix is trying to enforce; it is closely related to the original GONIC-1 IDOR but uses a different primitive (path traversal in the `id` parameter rather than direct cross-user access). Commit 0824bed88f6bbc490ba28bf09d28e5dfeb07b445 in version 0.21.0 fixes the issue.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"gonic: Path Traversal in playlist `id` bypasses ownership check, enabling any user to read/delete other users' playlists","id":"CVE-2026-49339","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"gonic has arbitrary file write in createPlaylist: any authenticated user can write playlist M3U content to attacker-controlled path on the host","id":"CVE-2026-49340"},"packages":[{"ecosystem":"Go","fixed":["0.21.0"],"introduced":["0"],"last_affected":[],"package":"go.senan.xyz/gonic","purl":null,"source":"GHSA-2fp4-5v5c-4448"},{"ecosystem":"Go","fixed":["0.21.0"],"introduced":["0"],"last_affected":[],"package":"go.senan.xyz/gonic","purl":"pkg:golang/go.senan.xyz/gonic","source":"GHSA-2fp4-5v5c-4448"},{"ecosystem":"Go","fixed":["0.21.0"],"introduced":["0"],"last_affected":[],"package":"go.senan.xyz/gonic","purl":"pkg:golang/go.senan.xyz/gonic","source":"GO-2026-5825"}],"prev":{"headline":"Subsonic API: any authenticated user can delete or read any other user's playlist (IDOR)","id":"CVE-2026-49338"},"products":["gonic"],"published":"2026-06-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-22","vendors":["sentriz"]},"summary":"Authenticated users can bypass ownership checks via path traversal to read or delete other users' playlists and probe host files.","url":"https://insights.sbomify.com/CVE-2026-49339/"}