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.7Details
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.7Fix
go get github.com/projectcapsule/capsule@v0.13.7References
- https://github.com/projectcapsule/capsule/security/advisories/GHSA-f94q-w3w8-cj67[ADVISORY]
- https://github.com/projectcapsule/capsule/commit/8d89d6865df6f41c7faa22fc9e807a57b01bfd0e[FIX]
- https://github.com/projectcapsule/capsule/pull/1983[FIX]
- https://github.com/projectcapsule/capsule/releases/tag/v0.13.7[WEB]
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"]}'