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
References5
- github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c ExploitVendor Advisory
- github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c ExploitVendor Advisory
- github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e4… Patch
- github.com/gofiber/fiber/pull/4389 Issue TrackingPatch
- github.com/gofiber/fiber/releases/tag/v3.4.0 Release Notes
Metrics
- CVSS 3.1
-
4.8
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N - EPSS — exploit probability
- 0% percentile: 12 · as of 15 November 2026
- CWE
- CWE-319
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.