# CVE-2026-56280: Cap-go - Privilege Inversion in Build Log Stream via SSE Disconnect

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-22T21:04:46.151Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Cap-go capgo: before 12.128.2 (not affected: 12.128.2)

## Every score

- VulnCheck: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://github.com/Cap-go/capgo/security/advisories/GHSA-95g7-xwwx-j737> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/cap-go-privilege-inversion-in-build-log-stream-via-sse-disconnect> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-56280](https://www.cve.org/CVERecord?id=CVE-2026-56280), CVE Terms of Use, modified 2026-06-24
- NVD: [CVE-2026-56280](https://nvd.nist.gov/vuln/detail/CVE-2026-56280), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-56280 · Whole record: https://cve.day/CVE-2026-56280.json · Rebuilt by cve.day 2026-11-25T22:59:25.429Z
