CVE-2026-56280 Details
Description
Cap-go before 12.128.2 contains a privilege inversion vulnerability in GET /build/logs/:jobId that allows read-only API key holders to cancel running native builds. The endpoint registers an abort listener on the SSE stream that unconditionally invokes cancelBuildOnDisconnect() using the privileged server-side BUILDER_API_KEY when clients disconnect, bypassing the app.build_native permission check required by the explicit POST /build/cancel/:jobId endpoint. Attackers with read-only API keys can repeatedly disrupt native build operations and CI/CD workflows by opening the log stream and dropping the connection.
A privilege inversion vulnerability has been identified in Cap-go versions prior to 12.128.2. The issue resides in the GET /build/logs/:jobId endpoint, where read-only API key holders can cancel running native builds. This vulnerability arises because the endpoint, while protected by a read-only permission, automatically registers an abort listener on the Server-Sent Events (SSE) stream. When a client disconnects, the server invokes a build cancellation function using a privileged server-side API key, bypassing the necessary permission check. As a result, attackers with read-only API keys can disrupt native build processes and continuous integration/continuous deployment (CI/CD) workflows by simply opening the log stream and then dropping the connection.
The recommended fix is to remove the automatic cancellation on SSE disconnect for read-only users or to add a permission check before registering the abort listener. This ensures that only users with the appropriate privileges can cancel builds via the log stream.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 22, 2026CISA-ADP
Assessed Jun 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Cap-go/capgo/security/advisories/GHSA-95g7-xwwx-j737 | CISA-ADP | AdvisoryTechnical AnalysisVendor |
| https://github.com/Cap-go/capgo/security/advisories/GHSA-95g7-xwwx-j737 | [email protected] | AdvisoryTechnical AnalysisVendor |
| https://www.vulncheck.com/advisories/cap-go-privilege-inversion-in-build-log-stream-via-sse-disconnect | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-862 | Missing Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Cap-go | < 12.128.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 24, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | New CVE Received | [email protected] |
Volerion