Fiber: HSTS header never set in helmet middleware due to incorrect protocol check
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-319.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gofiber | fiber | before 3.4.0 | 3.4.0 | Patch available | CNA |
| — | github.com/gofiber/fiber (Go) | before 3.4.0 | 3.4.0 | Patch available | GHSA-gv83-gqw6-9j2c |
- fiber Vendorgofiber Affected before 3.4.0 Fixed in 3.4.0 Patch available CNA
- github.com/gofiber/fiber (Go) Vendor— Affected before 3.4.0 Fixed in 3.4.0 Patch available GHSA-gv83-gqw6-9j2c
Remediation
- Fix · CNA fiber (gofiber) Fixed in 3.4.0
- Fix · GHSA-gv83-gqw6-9j2c github.com/gofiber/fiber (Go) Fixed in 3.4.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53624
- 2026-10-03 Alias added: GHSA-gv83-gqw6-9j2c
References
Patch 2
More gofiber Fiber vulnerabilities
- TI-2025-34555 Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder CVSS 4.0HIGH 8.7
- TI-2024-16578 Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials CVSS 3.1CRITICAL 9.8
- TI-2025-30446 Fiber panics when fiber.Ctx.BodyParser parses invalid range index CVSS 4.0HIGH 7.7
- TI-2026-23477 github.com/gofiber/fiber/v3 cache middleware can mix responses across query parameters CVSS 3.1MEDIUM 6.5
- TI-2026-20922 Fiber has a Denial of Service Vulnerability via Route Parameter Overflow CVSS 4.0MEDIUM 5.5
- TI-2026-30834 Fiber: XSS in AutoFormat Content Negotiation CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-53624 · CVE Program
- CVE-2026-53624 · NVD
- FIRST EPSS
- GHSA-gv83-gqw6-9j2c · GitHub Advisory Database · CC BY 4.0
- CVE-2026-53624 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences