CVE-2026-53624 PUBLISHED

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

Assigner: GitHub_M
Reserved: 09.06.2026 Published: 08.07.2026 Updated: 08.07.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS Score: 4.8

Product Status

Vendor gofiber
Product fiber
Versions
  • Version < 3.4.0 is affected

References

Problem Types

  • CWE-319: Cleartext Transmission of Sensitive Information CWE