CVE-2026-53624
MEDIUMFiber: HSTS header never set in helmet middleware due to incorrect protocol check
Title source: cnaDescription
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.
References (4)
Core 4
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c
X_Refsource_Misc x_refsource_misc
https://github.com/gofiber/fiber/pull/4389
X_Refsource_Misc x_refsource_misc
https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf
X_Refsource_Misc x_refsource_misc
https://github.com/gofiber/fiber/releases/tag/v3.4.0
Scores
CVSS v3
4.8
EPSS
0.0018
EPSS Percentile
7.6%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-319
Status
published
Products (1)
gofiber/fiber
< 3.4.0 (2 CPE variants)
Published
Jul 08, 2026
Tracked Since
Jul 09, 2026