{"answers":{"affected":"3 open source packages ship an affected version, including github.com/shi-gg/linkdave.","exploited":"There is no known exploitation of GHSA-xv8g-fj9h-6gmv in the wild and no public exploit code.","fix":"Upgrade github.com/shi-gg/linkdave to 0.1.5 or later.","what":"GHSA-xv8g-fj9h-6gmv is a missing authorization vulnerability in github.com/shi-gg/linkdave, published on 10 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-xv8g-fj9h-6gmv and fix it if it is affected.\n\nWhat it is: GHSA-xv8g-fj9h-6gmv is a missing authorization vulnerability in github.com/shi-gg/linkdave, published on 10 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-xv8g-fj9h-6gmv in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/shi-gg/linkdave (Go): affected all versions; fixed in 0.1.5\n- github.com/shi-gg/linkdave (Go): affected all versions; fixed in 0.1.5\n- github.com/shi-gg/linkdave (Go): affected all versions; fixed in 0.1.5\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/GHSA-xv8g-fj9h-6gmv/ (Markdown: https://insights.sbomify.com/GHSA-xv8g-fj9h-6gmv/index.md)","id":"GHSA-xv8g-fj9h-6gmv","markdown":"https://insights.sbomify.com/GHSA-xv8g-fj9h-6gmv/index.md","name":"GHSA-xv8g-fj9h-6gmv","record":{"aliases":["GO-2026-4661"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Go audio server","requires_auth":"none","summary":"Unauthenticated attackers can control audio playback and access server statistics via exposed REST and WebSocket endpoints.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"The `linkdave` server does not enforce authentication on its REST and WebSocket routes in versions prior to `0.1.5`.\n\n### Impact\n\nAn attacker with network access to the server port can:\n- Connect to the WebSocket endpoint (`/ws`) and receive a valid `session_id` in the `OpReady` response.\n- Use that session to invoke all REST player controls on any guild corresponding to their session id[1].\n- Enumerate server statistics and runtime information via the unauthenticated `/stats` endpoint (still public after the fix).\n\n[1] If on [`\u003e=0.1.0`](https://github.com/shi-gg/linkdave/releases/tag/v0.1.0), attackers are restricted to creating, controlling and deleting players created within their own session ID.\n\n### Vulnerable Routes\n\nThe following routes were entirely unauthenticated in `\u003e= 0.0.1, \u003c 0.1.5`:\n\n| Method | Path | Description |\n|--------|------|-------------|\n| `POST` | `/sessions/{session_id}/players/{guild_id}/play` | Start audio playback |\n| `POST` | `/sessions/{session_id}/players/{guild_id}/pause` | Pause playback |\n| `POST` | `/sessions/{session_id}/players/{guild_id}/resume` | Resume playback |\n| `POST` | `/sessions/{session_id}/players/{guild_id}/stop` | Stop playback |\n| `POST` | `/sessions/{session_id}/players/{guild_id}/seek` | Seek to position |\n| `PATCH` | `/sessions/{session_id}/players/{guild_id}/volume` | Set volume |\n| `DELETE` | `/sessions/{session_id}/players/{guild_id}` | Disconnect from voice channel |\n| `GET` | `/ws` | WebSocket event stream |\n\n### Patches\n\nUpdate to [`0.1.5`](https://github.com/shi-gg/linkdave/commit/0f9a00d9d549b16278db81fce6dfec350c2abc01).\n\n```diff\n- image: ghcr.io/shi-gg/linkdave:0.1.4\n+ image: ghcr.io/shi-gg/linkdave:latest\n```\nor\n```sh\ndocker pull ghcr.io/shi-gg/linkdave:latest\n```\n\nAfter upgrading, set the `LINKDAVE_PASSWORD` environment variable to a strong secret value. If this variable is left unset, the server will still accept all connections without authentication even on `\u003e= 0.1.5`.\n\n**Server configuration (e.g. `compose.yml`):**\n```sh\nenvironment:\n    LINKDAVE_PASSWORD: ${LINKDAVE_PASSWORD}\n```\n```sh\necho \"LINKDAVE_PASSWORD=$(openssl rand -hex 16)\" \u003e\u003e .env\n```\n\nTo restart the stack, run\n```sh\ndocker compose up -d\n```\n\n**TypeScript client (`0.1.5+`):**\n\nThe client automatically handles authentication. Pass the password when constructing the client:\n```ts\nconst linkdave = new LinkDaveClient({\n    nodes: [\n        {\n            name: \"main\",\n            url: process.env.LINKDAVE_URI,\n            password: process.env.LINKDAVE_PASSWORD\n        }\n    ]\n});\n```\n\n### Workarounds\n\nIf upgrading is not immediately possible, restrict network access to the server's port using a firewall so it is only accessible from trusted internal IP addresses.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Linkdave Missing Authentication on REST and WebSocket endpoints","id":"GHSA-xv8g-fj9h-6gmv","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/shi-gg/linkdave","purl":null,"source":"GHSA-xv8g-fj9h-6gmv"},{"ecosystem":"Go","fixed":["0.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/shi-gg/linkdave","purl":"pkg:golang/github.com/shi-gg/linkdave","source":"GHSA-xv8g-fj9h-6gmv"},{"ecosystem":"Go","fixed":["0.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/shi-gg/linkdave","purl":"pkg:golang/github.com/shi-gg/linkdave","source":"GO-2026-4661"}],"products":null,"published":"2026-03-10","related":[],"sources":[{"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Unauthenticated attackers can control audio playback and access server statistics via exposed REST and WebSocket endpoints.","url":"https://insights.sbomify.com/GHSA-xv8g-fj9h-6gmv/"}