CVE-2026-56280

HIGH

Cap-go - Privilege Inversion in Build Log Stream via SSE Disconnect

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-95g7-xwwx-j737)
https://github.com/Cap-go/capgo/security/advisories/GHSA-95g7-xwwx-j737
Third Party Advisory third-party-advisory
VulnCheck Advisory: Cap-go - Privilege Inversion in Build Log Stream via SSE Disconnect
https://www.vulncheck.com/advisories/cap-go-privilege-inversion-in-build-log-stream-via-sse-disconnect

Scores

CVSS v3 7.1
EPSS 0.0037
EPSS Percentile 29.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-862
Status published
Products (2)
Cap-go/capgo < 12.128.2
Cap-go/capgo 12.128.2
Published Jun 22, 2026
Tracked Since Jun 23, 2026