CVE-2026-77308: Witness: CI/CD secret exfiltration via .witness.yaml auto-load in untrusted repository
Witness is a pluggable framework for software supply chain risk management. Prior to version 0.11.0, the witness CLI auto-loads .witness.yaml from the current working directory on every invocation (default config path at options/root.go:29, loaded by initConfig at cmd/config.go:46). In CI/CD pipelines that check out untrusted Pull Requests, an attacker can include a .witness.yaml that redirects attestation uploads to an attacker-controlled server with sensitive variable filtering disabled, exfiltrating all CI environment variables including secrets. This issue has been patched in version 0.11.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.11.0
Event History
Frequently Asked Questions
Which CI/CD workflows are exposed?
Workflows using Witness before 0.11.0 are exposed when they invoke the CLI from a working directory containing code checked out from an untrusted pull request. An attacker must be able to add a .witness.yaml file to that repository content.
What could an attacker obtain through exploitation?
The attacker-controlled configuration can redirect attestation uploads to a server they control and disable sensitive-variable filtering. This can expose all CI environment variables, including secrets.
Are default Witness settings affected?
Yes. Before 0.11.0, Witness automatically loaded .witness.yaml from the current working directory on every invocation, using that location as the default configuration path.
What should teams do if they cannot immediately upgrade?
Do not run the affected Witness CLI in a working directory populated from untrusted pull requests, or ensure untrusted repository content cannot provide a .witness.yaml file. Treat CI secrets and environment variables available to such runs as potentially exposed.
How can teams determine whether they may have been affected?
Review CI jobs using Witness before 0.11.0 that checked out untrusted pull requests and ran from the checkout directory. Check whether those pull requests contained a .witness.yaml that configured attestation uploads or disabled sensitive-variable filtering.