Moderate severityNVD Advisory· Published Jul 8, 2026· Updated Jul 10, 2026
Fiber: HSTS header never set in helmet middleware due to incorrect protocol check
CVE-2026-53624
Description
Fiber is an Express inspired web framework written in Go. Prior to 3.4.0, the helmet middleware in middleware/helmet/helmet.go never sets the Strict-Transport-Security response header even when HSTSMaxAge is configured because it checks c.Protocol() for https instead of c.Scheme(). This issue is fixed in version 3.4.0.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/gofiber/fiberGo | < 3.4.0 | 3.4.0 |
Affected products
1Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-gv83-gqw6-9j2cghsaADVISORY
- github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bfmitrex_refsource_MISC
- github.com/gofiber/fiber/pull/4389mitrex_refsource_MISC
- github.com/gofiber/fiber/releases/tag/v3.4.0mitrex_refsource_MISC
- github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2cghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.