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.
Published: 2026-07-08
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

Generated by OpenCVE AI on July 26, 2026 at 17:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Fiber framework to version 3.4.0 or newer, where the helmet middleware correctly sets the HSTS header.
  • Verify that the HSTSMaxAge setting is enabled in the helmet middleware and confirm that the Strict‑Transport‑Security header appears in responses.
  • As a temporary safeguard, 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 26, 2026 at 17:20 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

Fri, 10 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 08 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
First Time appeared Gofiber
Gofiber fiber
Vendors & Products Gofiber
Gofiber fiber

Wed, 08 Jul 2026 19:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T14:57:28.656Z

Reserved: 2026-06-09T20:16:59.646Z

Link: CVE-2026-53624

cve-icon Vulnrichment

Updated: 2026-07-10T14:56:43.520Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T17:30:17Z

Weaknesses
  • CWE-319

    Cleartext Transmission of Sensitive Information