What’s Vulnerable › Vulnerabilities
CVE-2026-53624: Fiber: HSTS header never set in helmet middleware due to incorrect protocol check
- Severity: medium (CVSS 4.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-07-08 · updated 2026-10-25
- Weakness: CWE-319
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 products
- gofiber fiber: before 3.4.0 — fixed in 3.4.0
How to fix
Upgrade to a fixed version: gofiber fiber 3.4.0. Check the vendor advisory for mitigations.
References
- https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf
- https://github.com/gofiber/fiber/pull/4389
- https://github.com/gofiber/fiber/releases/tag/v3.4.0
- https://github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c
- https://github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c
Get alerted when CVE-2026-53624 or the next vulnerability affects your stack