CVE-2026-53624

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

Published Jul 8, 2026 CVSS 3.1 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Fiber’s helmet middleware fails to set the Strict‑Transport‑Security header when HSTSMaxAge is configured because it checks the protocol incorrectly. As a result, browsers do not receive HSTS directives and may continue to use plain HTTP, leaving the application vulnerable to traffic‑intercept or downgrade attacks. The weakness is identified as CWE‑319, a failure to respect the correct protocol and therefore the security of HTTPS communications is compromised. Fiber deployments that use the helmet middleware with HSTSMaxAge configured prior to version 3.4.0 are impacted. Deployments running these older releases in production environments that rely on the middleware for HTTPS enforcement are at risk.

Affected Systems

Affected are deployments of the Gofiber Fiber web framework before version 3.4.0 that use the helmet middleware with HSTSMaxAge configured. These installations fail to set the Strict‑Transport‑Security header, resulting in browsers lacking the HSTS policy.

Risk and Exploitability

The CVSS score is 4.8 and the EPSS score is <1%, indicating a very low overall chance of exploitation. It is inferred that the attack vector is client‑side, allowing an attacker to serve a victim’s browser over plain HTTP and intercept or tamper with traffic. No credentials or privileged access are required; the flaw simply removes network‑level enforcement that protects HTTPS traffic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Fiber framework to version 3.4.0 or newer, where the helmet middleware correctly sets the HSTS header.
  • Configure the helmet middleware to set HSTSMaxAge so the Strict‑Transport‑Security header is set.
  • Enforce HTTPS at the network level by redirecting all HTTP traffic to HTTPS or blocking HTTP on the load balancer or reverse proxy.

Generated by OpenCVE AI on July 31, 2026 at 13:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gv83-gqw6-9j2c GoFiber never set HSTS header in helmet middleware due to incorrect protocol check
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gofiber
Gofiber fiber
Vendors & Products Gofiber
Gofiber fiber
Type Values Removed Values Added
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.
Title Fiber: HSTS header never set in helmet middleware due to incorrect protocol check
Weaknesses CWE-319
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-319

    Cleartext Transmission of Sensitive Information

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 10, 2026, 2:57 PM
Reserved
Jun 9, 2026, 8:16 PM
Status
Analyzed
Published
Jul 8, 2026, 8:16 PM
Modified
Oct 25, 2026, 5:10 PM