{"answers":{"affected":"3 open source packages ship an affected version, including github.com/juev/nebula-mesh.","exploited":"There is no known exploitation of GHSA-v2jf-442r-6mjh in the wild and no public exploit code.","fix":"Upgrade github.com/juev/nebula-mesh to 0.3.4 or later.","what":"GHSA-v2jf-442r-6mjh is a vulnerability in github.com/juev/nebula-mesh, published on 26 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-v2jf-442r-6mjh and fix it if it is affected.\n\nWhat it is: GHSA-v2jf-442r-6mjh is a vulnerability in github.com/juev/nebula-mesh, published on 26 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-v2jf-442r-6mjh in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/juev/nebula-mesh (Go): affected all versions; fixed in 0.3.4\n- github.com/juev/nebula-mesh (Go): affected all versions; fixed in 0.3.4\n- github.com/juev/nebula-mesh (Go): affected all versions; fixed in 0.3.4\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-v2jf-442r-6mjh/ (Markdown: https://insights.sbomify.com/GHSA-v2jf-442r-6mjh/index.md)","id":"GHSA-v2jf-442r-6mjh","markdown":"https://insights.sbomify.com/GHSA-v2jf-442r-6mjh/index.md","name":"GHSA-v2jf-442r-6mjh","record":{"aliases":["GO-2026-5815"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Nebula mesh network","requires_auth":"low_privilege","summary":"Attackers can replay signed-poll requests after server restarts or cache eviction to steal enrollment tokens and compromise agent identities.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"`internal/api/pop/nonce.go:25,40,86` + `internal/api/server.go:38` — the signed-poll nonce cache is an in-process LRU sized at 65,536 entries. `internal/api/updates.go:31` sets `pollClockSkew = 5 * time.Minute` as the replay window.\n\n## Affected\nAll released versions through v0.3.0 that have shipped the ADR 0004 signed-poll path. (If this is gated behind a feature flag, on a side branch, or not yet on a release tag, please flag — this advisory may not apply to the released artifact yet.)\n\n## Threat model\nA captured signed-poll request can be replayed:\n\n1. **After any process restart** — the in-memory LRU is wiped, so the original nonce becomes \"unseen\" again. Replay succeeds if the original timestamp is still within the 5-minute skew.\n2. **After forced eviction** — an attacker with control of any single host can flood \u003e65,536 nonces under their own host_id, driving the global LRU to evict the victim's recorded nonce. Replay then succeeds.\n\nImpact is bounded: a replayed poll fetches the `/api/v1/agent/updates` body. That body can include a freshly-minted enrollment token if a rekey is pending (`updates.go:249-260`) — at which point the attacker holds a single-use token they can redeem under their own keypair.\n\n## Suggested fix\nTwo options, either acceptable:\n\n1. Persist nonces in SQLite keyed by `(host_id, nonce)` with `ON CONFLICT DO NOTHING`, retained for the timestamp-skew window. Adds one transactional INSERT per poll; bounded by the skew window (~5 min worth of rows server-wide).\n2. Per-host cap on the LRU instead of a global 65k cap, so one host cannot evict another's records. Combined with shorter skew (≤30s) to bound the post-restart replay window.\n\nOption 1 is more robust; option 2 is lower-implementation-effort.","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":"nebula-mesh: Signed-poll nonce LRU is in-memory and bounded; replay survives restart + eviction","id":"GHSA-v2jf-442r-6mjh","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"other","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/juev/nebula-mesh","purl":null,"source":"GHSA-v2jf-442r-6mjh"},{"ecosystem":"Go","fixed":["0.3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/juev/nebula-mesh","purl":"pkg:golang/github.com/juev/nebula-mesh","source":"GHSA-v2jf-442r-6mjh"},{"ecosystem":"Go","fixed":["0.3.4"],"introduced":["0"],"last_affected":[],"package":"github.com/juev/nebula-mesh","purl":"pkg:golang/github.com/juev/nebula-mesh","source":"GO-2026-5815"}],"products":null,"published":"2026-06-26","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":"Attackers can replay signed-poll requests after server restarts or cache eviction to steal enrollment tokens and compromise agent identities.","url":"https://insights.sbomify.com/GHSA-v2jf-442r-6mjh/"}