VYPR
Moderate severityNVD Advisory· Published Jul 8, 2026· Updated Jul 10, 2026

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

CVE-2026-53624

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 packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/gofiber/fiberGo
< 3.4.03.4.0

Affected products

1

Patches

Vulnerability mechanics

References

5

News mentions

0

No linked articles in our index yet.