# CVE-2026-5774: Canonical Juju race condition in API server userTokens map

Source: https://junglewise.ai/threats/cve-2026-5774-canonical-juju-race-condition-in-api-server-usertokens-map  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-10. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2026-5774 · Severity: medium · CVSS 6.4 · Published 2026-04-10

A race condition in the Canonical Juju API server's token management allows authenticated users to cause a denial of service or reuse single-use discharge tokens.

Technologies: [github.com/juju/juju (Go)](https://junglewise.ai/threats/technologies/github-com-juju-juju). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-5774 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-5774 being exploited in the wild.

**How severe is CVE-2026-5774?** Medium severity, with a CVSS score of 6.4, published 10 April 2026.

**Which products and versions are affected?** github.com/juju/juju (Go) < 0.0.0-20260408003526-d395054dc2c3, SEMVER:introduced=0,fixed=0.0.0-20260408003526-d395054dc2c3.

**Is there a fix for CVE-2026-5774?** Yes. github.com/juju/juju (Go): upgrade to 0.0.0-20260408003526-d395054dc2c3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-5774?** Check whether you run github.com/juju/juju (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/juju/juju (Go): upgrade to 0.0.0-20260408003526-d395054dc2c3 or later

  ```sh
  go get github.com/juju/juju@v0.0.0-20260408003526-d395054dc2c3
  ```


## Affected products

- github.com/juju/juju (Go) < 0.0.0-20260408003526-d395054dc2c3, SEMVER:introduced=0,fixed=0.0.0-20260408003526-d395054dc2c3

## Identifiers

- CVE-2026-5774
- GHSA-7m55-2hr4-pw78
- GO-2026-5228

## References

- [https://api.github.com/users/fg0x0](https://api.github.com/users/fg0x0)
- [https://github.com/fg0x0](https://github.com/fg0x0)
- [https://api.github.com/users/fg0x0/gists%7B/gist_id%7D](https://api.github.com/users/fg0x0/gists%7B/gist_id%7D)
- [https://api.github.com/users/fg0x0/repos](https://api.github.com/users/fg0x0/repos)
- [https://avatars.githubusercontent.com/u/35772301?v=4](https://avatars.githubusercontent.com/u/35772301?v=4)
- [https://api.github.com/users/fg0x0/events%7B/privacy%7D](https://api.github.com/users/fg0x0/events%7B/privacy%7D)

## Related threats

- [Canonical Juju improper authorization in Controller facade](https://junglewise.ai/threats/cve-2026-5412-canonical-juju-improper-authorization-in-controller-facade)
- [Canonical Juju incorrect authorization in resource handler](https://junglewise.ai/threats/cve-2025-68153-canonical-juju-incorrect-authorization-in-resource-handler)
- [Canonical Juju Incorrect Authorization in Debug Log Endpoint](https://junglewise.ai/threats/cve-2025-68152-canonical-juju-incorrect-authorization-in-debug-log-endpoint)
- [Juju has Improper TLS Client/Server authentication and certificate verification on Database Cluster](https://junglewise.ai/threats/cve-2026-4370-juju-has-improper-tls-client-server-authentication-and-certificate)
- [GO-2026-4781 - Juju has unauthorized update of out-of-scope Vault secrets in github.com/juju/juju](https://junglewise.ai/threats/cve-2026-32692-juju-has-unauthorized-update-of-out-of-scope-vault-secrets)
