CVE-2026-53624
MEDIUM 4.8CVSS 3.1GoFiber never set HSTS header in helmet middleware due to incorrect protocol check
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
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-319
- Also known as
- GHSA-gv83-gqw6-9j2cGO-2026-5912
- Sources
- NVDJSONOSV GHSA-gv83-gqw6-9j2cJSONOSV GO-2026-5912JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gofiber | fibercpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* |
< 3.4.0 | 3.4.0 |
| OSV | Go | github.com/gofiber/fiber | < 3.4.0 | 3.4.0 |
| OSV | Go | github.com/gofiber/fiber/v3 | < 3.4.0 | 3.4.0 |
References
- https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf · Patch
- https://github.com/gofiber/fiber/pull/4389 · Issue Tracking, Patch, FIX
- https://github.com/gofiber/fiber/releases/tag/v3.4.0 · Release Notes
- https://github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c · Exploit, Vendor Advisory, WEB, ADVISORY
- https://github.com/gofiber/fiber · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Jul 2026)