Summary
Between September 3 and September 10, 2021 a flaw in Travis CI's build activation process, tracked as CVE-2021-41077 and disclosed publicly on September 13, caused secure environment variables to be injected into builds they should never reach. Secret data normally restricted to the private context of a repository was unexpectedly shared with builds triggered by pull requests from forks of public repositories, contradicting the customer's .travis.yml configuration. As a result anyone could fork a public project, open a pull request, and simply print the build environment to read the upstream project's secret environment variables, exposing signing keys, access credentials, and API tokens across thousands of open-source projects. This was a secret-exfiltration-to-forked-builds class flaw; Ethereum's Felix Lange flagged it on September 7 and Travis CI silently patched it on September 10 with no initial post-mortem, prompting affected projects such as conda-forge to rotate roughly 70 feedstock tokens.
How to avoid it in your code
- Rotate every CI signing key, token, and credential exposed to builds during a CI vendor's secret-leak window.
- Do not expose repository secrets to pull-request builds originating from forks; gate secret-bearing stages to trusted branches.
- Split pipelines into an untrusted fork-build stage with no secrets and a trusted post-merge stage that holds them.
- Treat any secret that ever entered a public-repo build context as compromised and replace it.
- Prefer short-lived OIDC credentials per job over static secret environment variables stored at the CI provider.
References
Related vulnerabilities
All Supply chain →- HIGHCVE-2026-55553
urllib's cross-origin redirects preserve credential-bearing request headers, leading to potential credential leakage
- MEDIUMGHSA-8mxv-9xhp-86h4
rclone: S3 Redirect Sanitization Omits IBM IAM Bearer Tokens and SSE-C Keys
- CRITICALCVE-2026-52855
Wings exposes node configuration secrets through egg configuration-file templating
- HIGHCVE-2026-54660
swagger-typescript-api vulnerable to authorization-token exfiltration via spec `$ref`
- MEDIUMGHSA-94pj-82f3-465w
Guzzle: Proxy-Authorization headers can be sent to origin servers
- HIGHCVE-2026-72793
SiYuan: Non-administrator responses from /api/system/getConf omit three secrets that the configuration-export path explicitly strips, disclosing the session-cookie signing key and the OS username to anonymous readers