CVE-2026-53624 Fiber: HSTS header never set in helmet middleware due to incorrect protocol check
MediumCVSS 4.8
EPSS 0.21%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- Ubuntu
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.
Upgrade path
4 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/golang-github-gofiber-fiber(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-gofiber-fiber-v2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| gofiber github.com/gofiber/fiber | < 3.4.0; = < 3.4.0 | 3.4.0 | Fixed |
| gofiber github.com/gofiber/fiber(Go) | < 3.4.0; <= 3.3.0 | 3.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gofiber github.com/gofiber/fiber(Go) | < 3.4.0 | 3.4.0 |
| gofiber github.com/gofiber/fiber | = < 3.4.0 | No fix listed |
| gofiber github.com/gofiber/fiber(Go) | <= 3.3.0 | No fix listed |
| ubuntu/golang-github-gofiber-fiber(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/golang-github-gofiber-fiber-v2(Ubuntu:26.10) | All versions | No fix listed |
| gofiber github.com/gofiber/fiber | < 3.4.0 | 3.4.0 |
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c exploit vendor-advisory
- github.com product
- https://github.com/gofiber/fiber/pull/4389 issue-tracking patch
- https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf patch
- https://github.com/gofiber/fiber/releases/tag/v3.4.0 release-notes
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org