Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks
CVE-2026-119345 · GHSA-ghwv-vrp2-2975 · GO-2026-6965 · published 10 Nov 2026
How serious is it
- Severity: high, CVSS score 7.2 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-119345?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
github.com/ultravioletrs/cocos(Go) <= 0.8.2
How to check
- Run
go list -m github.com/ultravioletrs/cocosin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
github.com/ultravioletrs/cocosto 0.9.0 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Summary
An attacker who can modify the attested workload’s code, memory-backed state, or configuration after the initial attestation — but without necessarily terminating the existing TLS connection — can cause the peer to continue trusting the connection as if the originally attested state were still running.
### Details
Once attestation is successfully appraised and connection is established, there is a window of vulnerability from the establishment of connection to the termination of connection where an attacker can modify the state of the workload and platform at runtime on the TLS endpoint acting as the Attester. Workload state includes code, data, and configuration. Other examples of state changes at the workload level include cases where a new device (such as a GPU) is connected, or where a connected device is disconnected, since the connection establishment.
In Cocos AI, there is no mechanism for the peer to know that some state has changed in the Attester after the connection establishment. The vulnerability is particularly concerning for long-lived connections.
In short, this vulnerability was possible because Cocos AI performs attestation only once in the lifetime of the connection (at connection establishment time) and the verifying peer continues to believe that the state is the same as in initial Evidence throughout, whereas it could be stale at some point in time.
This vulnerability for Cocos AI was found and demonstrated by Muhammad Usama Sardar via formal analysis. Formal analysis was performed in the state-of-the-art tool, ProVerif.
### Workarounds
The proposed workaround is to allow re-attestation of the workload after periodic or user-defined intervals using post-handshake attestation.
### Background and General Technical Details
For background and general (not specific to Cocos AI) technical details on this vulnerability, please see `G-RA2: Freshness of Evidence` in Sec. 5.1.1 of [Identity Crisis in Confidential Computing: Formal Analysis of Attested TLS](https://doi.org/10.1145/3779208.3785387). Also, see the corresponding [formal analysis](https://github.com/CCC-Attestation/formal-spec-id-crisis).
### Credits
This vulnerability for Cocos AI was found and _responsibly_ disclosed by Muhammad Usama Sardar (TU Dresden, Germany).
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/ultravioletrs/cocos/security/advisories/GHSA-ghwv-vrp2-2975
- nvd.nist.gov/vuln/detail/CVE-2026-119345
- github.com/ultravioletrs/cocos/pull/582
- github.com/ultravioletrs/cocos/commit/80bf813c48300f02259b338b91f844c71be582ea
- dl.acm.org/doi/10.1145/3779208.3785387
- github.com/CCC-Attestation/formal-spec-id-crisis
- github.com/ultravioletrs/cocos/releases/tag/v0.9.0
- github.com/advisories/GHSA-ghwv-vrp2-2975
- github.com/ultravioletrs/cocos
Merged from GitHub Advisory Database, OSV. Last updated 24 Nov 2026. All vulnerabilities · RSS · JSON