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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/gofiber/fiber | 3.4.0 | GHSA-gv83-gqw6-9j2c |
| Go | github.com/gofiber/fiber/v3 | 3.4.0 | GO-2026-5912 |
| Ubuntu:26.10 | golang-github-gofiber-fiber | no fix listed | UBUNTU-CVE-2026-53624 |
| Ubuntu:26.10 | golang-github-gofiber-fiber-v2 | no fix listed | UBUNTU-CVE-2026-53624 |
Affected products (as reported)
Weakness: CWE-319 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c x_refsource_CONFIRM
- https://github.com/gofiber/fiber/pull/4389 x_refsource_MISC
- https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf x_refsource_MISC
- https://github.com/gofiber/fiber/releases/tag/v3.4.0 x_refsource_MISC