{"id":"GHSA-w5cv-pw74-4rxc","revision":"4128b646da74438d99057cce21c033c0","records":[{"revision":"4128b646da74438d99057cce21c033c0","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-w5cv-pw74-4rxc","aliases":["CVE-2026-55701","GO-2026-5690"],"title":"opentelemetry-collector-contrib: githubreceiver silently ignores configured required_headers authentication","description":"## githubreceiver Silently Ignores Configured required_headers Authentication\n\n### Summary\n\nThe githubreceiver webhook handler does not enforce the `required_headers` configuration. Headers are validated at startup (config rejects empty keys/values) but never checked on incoming requests. This follows the same pattern as [GHSA-prf6-xjxh-p698](https://github.com/open-telemetry/opentelemetry-collector-contrib/security/advisories/GHSA-prf6-xjxh-p698) (awsfirehosereceiver auth bypass). Verified against current main.\n\n### Details\n\nIn `receiver/githubreceiver/config.go`, the `RequiredHeaders` field is defined (line 45) and validated at startup (lines 93-101). But `receiver/githubreceiver/trace_receiver.go` in `handleReq()` (lines 131-185) never references `RequiredHeaders`.\n\nThe gitlabreceiver enforces the same config correctly at `receiver/gitlabreceiver/traces_receiver.go:266-270`:\n\n    for key, value := range gtr.cfg.WebHook.RequiredHeaders {\n        if r.Header.Get(key) != string(value) {\n            return \"\", fmt.Errorf(\"%w: %s\", errInvalidHeader, key)\n        }\n    }\n\n### Amplifying factor\n\nThe `Secret` field defaults to empty and has no validation requiring it to be set. With an empty secret, `github.ValidatePayload` skips HMAC validation entirely. An operator who configures `required_headers` as their authentication mechanism (without setting `secret`) has zero authentication on the webhook endpoint.\n\n### Impact\n\nAn attacker can send arbitrary webhook payloads to the githubreceiver endpoint, bypassing the operator configured authentication. This allows injecting fake CI/CD trace data into the observability pipeline.\n\n### Suggested Fix\n\nAdd RequiredHeaders enforcement to `handleReq()`, matching the gitlabreceiver pattern.","state":0,"publishedAt":"2026-06-18T15:05:14+00:00","modifiedAt":"2026-06-25T23:11:38.4826325+00:00","affected":[{"ecosystem":"Go","name":"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubreceiver","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.151.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/open-telemetry/opentelemetry-collector-contrib/security/advisories/GHSA-w5cv-pw74-4rxc","https://github.com/open-telemetry/opentelemetry-collector-contrib"],"sourceUrl":"https://github.com/advisories/GHSA-w5cv-pw74-4rxc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-w5cv-pw74-4rxc","identifiers":["GHSA-w5cv-pw74-4rxc","CVE-2026-55701","GO-2026-5690"]},"retained":false,"historicalAffected":[]}],"coverage":[]}