CVE-2026-50141: Go.woodpecker ci.org/woodpecker/v3 Woodpecker GRPC Agent_id Metadata Can Vulnerability

HIGH
Advisory Identifier: GHSA-g7mm-9vx7-jm7h
CWE-639 CWE-290
Published
Advisory Summary

CVE-2026-50141 is a HIGH woodpecker grpc agent_id metadata can vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Go.woodpecker ci.org/woodpecker/v3 libraries in the Go ecosystem. The issue involves woodpecker grpc agent_id metadata can be spoofed- cross-tenant agent impersonation. Remediation is available by upgrading affected packages to version 3.14.1.

CVE-2026-50141 at a Glance

CVE Identifier CVE-2026-50141
GHSA Identifier GHSA-g7mm-9vx7-jm7h
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Go.woodpecker ci.org/woodpecker/v3
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-50141

To remediate this vulnerability, upgrade all affected Go.woodpecker ci.org/woodpecker/v3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

go.woodpecker-ci.org/woodpecker/v3 fixed: 3.14.1
Upgrade go.woodpecker-ci.org/woodpecker/v3 to 3.14.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for go.woodpecker-ci.org/woodpecker/v3

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-50141, inspect your project dependencies for Go.woodpecker ci.org/woodpecker/v3:

inspect dependencies for go.woodpecker-ci.org/woodpecker/v3

Analyze the terminal output to locate any version of Go.woodpecker ci.org/woodpecker/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.14.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Go.woodpecker ci.org/woodpecker/v3, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-50141 Affected Go.woodpecker ci.org/woodpecker/v3 Versions

1 component(s)
Fixed Versions:
3.14.1
Product / Package Ecosystem Affected Versions Fixed Version
go.woodpecker-ci.org/woodpecker/v3
Go
≥ 3.0.0
< 3.14.1
3.14.1

References

Frequently Asked Questions

What is CVE-2026-50141?
CVE-2026-50141 is a security vulnerability in Go.woodpecker ci.org/woodpecker/v3 involving Woodpecker gRPC agent_id metadata can be spoofed- cross-tenant agent impersonation under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Go.woodpecker ci.org/woodpecker/v3 versions are affected?
Affected versions include releases prior to 3.14.1 across affected packages: go.woodpecker-ci.org/woodpecker/v3.
What version fixes CVE-2026-50141?
Upgrading to 3.14.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is go.woodpecker-ci.org/woodpecker/v3 affected?
Yes, go.woodpecker-ci.org/woodpecker/v3 is affected in releases prior to 3.14.1. Upgrade your dependency to 3.14.1 or later.
What CWE is associated with CVE-2026-50141?
CVE-2026-50141 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Go dependencies for CVE-2026-50141?
Run the dependency tree command: 'inspect dependencies for go.woodpecker-ci.org/woodpecker/v3'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g7mm-9vx7-jm7h",
  "modified" : "2026-07-14T19:00:29Z",
  "published" : "2026-07-14T19:00:29Z",
  "aliases" : [ "CVE-2026-50141" ],
  "summary" : "Woodpecker gRPC agent_id metadata can be spoofed- cross-tenant agent impersonation",
  "details" : "### Impact\nA 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.\n\n### Patches\nDirect patch: https://github.com/woodpecker-ci/woodpecker/pull/6567\nLater proper fix: https://github.com/woodpecker-ci/woodpecker/pull/6569\n\n### Workarounds\nDisable org agents (`WOODPECKER_DISABLE_USER_AGENT_REGISTRATION=true`) and delete existing ones\n\n### Resources\nPublic ref: https://github.com/woodpecker-ci/woodpecker/issues/6541\nPrivate com: https://github.com/woodpecker-ci/woodpecker-security/issues/21",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "go.woodpecker-ci.org/woodpecker/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.14.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-g7mm-9vx7-jm7h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-50141"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/woodpecker-ci/woodpecker-security/issues/21"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/woodpecker-ci/woodpecker/issues/6541"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/woodpecker-ci/woodpecker/pull/6567"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/woodpecker-ci/woodpecker/pull/6569"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/woodpecker-ci/woodpecker"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-290", "CWE-639" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-14T19:00:29Z",
    "nvd_published_at" : "2026-06-18T14:17:29Z"
  }
}