CVE-2026-50141: Woodpecker gRPC agent_id metadata can be spoofed- cross-tenant agent impersonation
Impact A vulnerability in Woodpecker CI's gRPC layer allowed any authenticated agent to impersonate any other agent on the same server by injecting a forged agentid value into outgoing gRPC metadata. The server correctly verified the JWT token but then discarded the verified agent identity in favor of the client-supplied value.
Published Jul 14, 2026
Affected packages
go.woodpecker-ci.org/woodpecker/v3
- Ecosystem
- Go
- Affected
- >= 3.0.0, < 3.14.1
- Fixed in
- 3.14.1
- Check
go list -m go.woodpecker-ci.org/woodpecker/v3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A vulnerability in Woodpecker CI's gRPC layer allowed any authenticated agent to impersonate any other agent on the same server by injecting a forged agent_id value into outgoing gRPC metadata. The server correctly verified the JWT token but then discarded the verified agent identity in favor of the client-supplied value.
Patches
Direct patch: https://github.com/woodpecker-ci/woodpecker/pull/6567 Later proper fix: https://github.com/woodpecker-ci/woodpecker/pull/6569
Workarounds
Disable org agents (WOODPECKER_DISABLE_USER_AGENT_REGISTRATION=true) and delete existing ones
Resources
Public ref: https://github.com/woodpecker-ci/woodpecker/issues/6541 Private com: https://github.com/woodpecker-ci/woodpecker-security/issues/21
Credited to shivamkumarcyber.
References
- https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-g7mm-9vx7-jm7h
- https://nvd.nist.gov/vuln/detail/CVE-2026-50141
- https://github.com/woodpecker-ci/woodpecker-security/issues/21
- https://github.com/woodpecker-ci/woodpecker/issues/6541
- https://github.com/woodpecker-ci/woodpecker/pull/6567
- https://github.com/woodpecker-ci/woodpecker/pull/6569
- https://github.com/advisories/GHSA-g7mm-9vx7-jm7h
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
