Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M

CVE-2026-53624Fiber: HSTS header never set in helmet middleware due to incorrect protocol check

Medium 4.8

In plain English

A medium-severity security flaw in fiber from gofiber. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.2%top 88.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/gofiber/fiber3.4.0GHSA-gv83-gqw6-9j2c
Gogithub.com/gofiber/fiber/v33.4.0GO-2026-5912
Ubuntu:26.10golang-github-gofiber-fiberno fix listedUBUNTU-CVE-2026-53624
Ubuntu:26.10golang-github-gofiber-fiber-v2no fix listedUBUNTU-CVE-2026-53624

Affected products (as reported)

VendorProductVersions
gofiber fiber < 3.4.0

Weakness: CWE-319 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

References