Skip to content
OpenAdvisories
Medium · 4.8 CVE-2026-53624 EUVD-2026-42356GHSA-gv83-gqw6-9j2cGO-2026-5912

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

Published Jul 8, 2026 · Updated Jul 10, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
gofiber fiber < 3.4.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-gofiber-fiber +1 No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
SLES 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 openSUSE-SU-2026:21551-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gofiber/fiber < 3.4.0 3.4.0 GHSA-gv83-gqw6-9j2c
Go github.com/gofiber/fiber/v3 < 3.4.0 3.4.0 GO-2026-5912

Advisories 3

References