{"answers":{"affected":"3 open source packages ship an affected version, including github.com/juju/juju. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5774 exists.","fix":"Upgrade github.com/juju/juju to 0.0.0-20260408003526-d395054dc2c3 or later.","what":"CVE-2026-5774 is a medium-severity vulnerability in Canonical Juju, published on 10 Apr 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-5774 and fix it if it is affected.\n\nWhat it is: CVE-2026-5774 is a medium-severity vulnerability in Canonical Juju, published on 10 Apr 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-5774 exists.\n\nAffected packages and fixed versions:\n- github.com/juju/juju (Go): affected all versions; fixed in 0.0.0-20260408003526-d395054dc2c3\n- github.com/juju/juju (Go): affected all versions; fixed in 0.0.0-20260408003526-d395054dc2c3\n- github.com/juju/juju (Go): affected all versions; fixed in 0.0.0-20260408003526-d395054dc2c3\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-5774/ (Markdown: https://insights.sbomify.com/CVE-2026-5774/index.md)","id":"CVE-2026-5774","markdown":"https://insights.sbomify.com/CVE-2026-5774/index.md","name":"CVE-2026-5774","record":{"aliases":["GHSA-7m55-2hr4-pw78","GO-2026-5228"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["denial_of_service","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Juju API server","requires_auth":"low_privilege","summary":"An authenticated user can cause a denial of service or reuse discharge tokens due to unsynchronized token maps in the Juju API server.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"juju","vendor":"canonical"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"Improper synchronization of the userTokens map in the API server in Canonical Juju 4.0.5, 3.6.20, and 2.9.56 may allow an authenticated user to possibly cause a denial of service on the server or possibly reuse a single-use discharge token.","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":"Juju API Server Denial of Service and Authentication Replay via Unsynchronized Token Map","id":"CVE-2026-5774","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Email Encoder \u003c 2.4.7 - Unauthenticated Stored XSS","id":"CVE-2026-5776"},"packages":[{"ecosystem":"Go","fixed":["0.0.0-20260408003526-d395054dc2c3"],"introduced":["0"],"last_affected":[],"package":"github.com/juju/juju","purl":null,"source":"GHSA-7m55-2hr4-pw78"},{"ecosystem":"Go","fixed":["0.0.0-20260408003526-d395054dc2c3"],"introduced":["0"],"last_affected":[],"package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"GHSA-7m55-2hr4-pw78"},{"ecosystem":"Go","fixed":["0.0.0-20260408003526-d395054dc2c3"],"introduced":["0"],"last_affected":[],"package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"GO-2026-5228"}],"prev":{"headline":"wrong reuse of SMB connection","id":"CVE-2026-5773"},"products":["Juju"],"published":"2026-04-10","related":[{"cvss_score":10,"headline":"Improper TLS Client/Server authentication and certificate verification on Database Cluster","id":"CVE-2026-4370","kev_date_added":null,"published":"2026-04-01"},{"cvss_score":9.9,"headline":"Juju CloudSpec API could leak senstive information","id":"CVE-2026-5412","kev_date_added":null,"published":"2026-04-10"},{"cvss_score":9.8,"headline":"Juju uses a UNIX domain socket without setting appropriate permissions","id":"CVE-2017-9232","kev_date_added":null,"published":"2017-05-28"},{"cvss_score":8.8,"headline":"Unauthorized access to Kubernetes secrets in Juju","id":"CVE-2026-32693","kev_date_added":null,"published":"2026-03-18"},{"cvss_score":8.8,"headline":"Arbitrary executable upload via authenticated endpoint","id":"CVE-2025-0928","kev_date_added":null,"published":"2025-07-08"},{"cvss_score":8.8,"headline":"Zip slip vulnerability in Juju","id":"CVE-2025-53513","kev_date_added":null,"published":"2025-07-08"},{"cvss_score":8.8,"headline":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm","id":"CVE-2024-6984","kev_date_added":null,"published":"2024-07-29"}],"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":"US public information, NVD API terms","name":"NVD"},{"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-04-10","vendors":["Canonical"]},"summary":"An authenticated user can cause a denial of service or reuse discharge tokens due to unsynchronized token maps in the Juju API server.","url":"https://insights.sbomify.com/CVE-2026-5774/"}