# GHSA-Q7HV-XX6H-Q2X8: External Secrets Operator: label enforcement bypass in webhook generator enables secret exfiltration

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-10-06
- Modified: 2026-10-20

## Tracked as

- [CVE-2026-26287](https://cve.now/CVE-2026-26287.md): External Secrets Operator: label enforcement bypass in webhook generator enables secret exfiltration

## Also published as

- [GO-2026-6667](https://cve.now/GO-2026-6667.md) (Go)

## Affected versions

- github.com/external-secrets/external-secrets (Go): from 0.10.0, fixed in 1.3.2

## Description

## Summary
A bug in the `webhook` generator initialization order incorrectly cleared the label-enforcement flag (`EnforceLabels`) after it was set, resulting in the provider-side check for `external-secrets.io/type=webhook` being skipped (and the operation to succeed while it should have failed with `secret does not contain needed label 'external-secrets.io/type: webhook'. Update secret label to use it with webhook`.

## Impact
A user with the permission to create webhook generator can set the webhook generator to a victim' secret (which was not previously labelled for webhook's use), and exfiltrate it to a malicious URL.

## Mitigations
Until you upgrade, you can reduce risk by:
- disabling webhook generators if not needed (or denying `generators.external-secrets.io/v1alpha1` `Webhook` via an admission policy);
- restricting RBAC: limit who can create generators of kind `Webhook`;
- enforcing an admission policy (OPA Gatekeeper / Kyverno) requiring referenced secrets to be labeled `external-secrets.io/type=webhook`;
- restricting egress from external-secrets controller pods to an allowlist (kubernetes `NetworkPolicy` / service mesh egress policy).

## References
- PR #5901 (fix: webhook initialization order)

## References

- https://github.com/external-secrets/external-secrets/security/advisories/GHSA-q7hv-xx6h-q2x8
- https://github.com/external-secrets/external-secrets/pull/5901
- https://github.com/external-secrets/external-secrets/commit/25aa09275861e3ed6fc5d2a1a60b9ac3df4a93ba
- https://github.com/external-secrets/external-secrets
- https://github.com/external-secrets/external-secrets/releases/tag/v1.3.2

Page: https://cve.now/GHSA-Q7HV-XX6H-Q2X8

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
