Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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