PT-2026-56054 · Fiber · Fiber

·

CVE-2026-53624

·

Published

2026-07-06

·

Updated

2026-08-10

CVSS v3.1

4.8

Medium

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Fiber versions prior to 3.4.0
Description The helmet middleware in the Fiber web framework fails to set the Strict-Transport-Security (HSTS) response header, even when HSTSMaxAge is configured. This occurs because the logic in middleware/helmet/helmet.go incorrectly uses the c.Protocol() function to check for HTTPS connections. The c.Protocol() function returns the HTTP protocol version (such as HTTP/1.1 or HTTP/2.0) rather than the URL scheme. Consequently, the condition c.Protocol() == "https" always evaluates to false, rendering the HSTS protection inactive. This can leave users susceptible to SSL stripping attacks, protocol downgrades, and cookie theft over HTTP.
Recommendations Update Fiber to version 3.4.0. As a temporary workaround, restrict the use of the helmet middleware if HSTS is the only required security header until the update is applied.

Exploit

Fix

Cleartext Transmission of Sensitive Information

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-53624
GHSA-GV83-GQW6-9J2C
GO-2026-5912
OPENSUSE-SU-2026:21551-1
SUSE-SU-2026:23216-1
SUSE-SU-2026:23227-1

Affected Products

Fiber