Skip to content
CVE PROGRAM SOURCE RECORD4.8 Medium

CVE-2026-53624

Fiber: HSTS header never set in helmet middleware due to incorrect protocol check

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

gofiber fiber

  • < 3.4.0affected

References