VDB
Sign up
MEDIUM6.8

GO-2026-6519

Capsule: hostnameRegexHandler.OnUpdate validates stale (old) Tenant regex, allowing invalid AllowedHostnames regex to bypass webhook validation in github.com/projectcapsule/capsule

Quick fix

GO-2026-6519 — github.com/projectcapsule/capsule: upgrade to the fixed version with the command below.

go get github.com/projectcapsule/capsule@v0.13.7

Details

Capsule: hostnameRegexHandler.OnUpdate validates stale (old) Tenant regex, allowing invalid AllowedHostnames regex to bypass webhook validation in github.com/projectcapsule/capsule

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/projectcapsule/capsule
Introduced in: 0.13.0Fixed in: 0.13.7
Fixgo get github.com/projectcapsule/capsule@v0.13.7

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/github.com/projectcapsule/capsule"]}'