# CVE-2026-53624: Fiber: HSTS header never set in helmet middleware due to incorrect protocol check

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-06T20:43:12.000Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-gv83-gqw6-9j2c, GO-2026-5912
- Weaknesses: CWE-319
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gofiber fiber: < 3.4.0; before 3.4.0
- github.com/gofiber/fiber (Go): before 3.4.0
- github.com/gofiber/fiber/v3 (Go): before 3.4.0

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `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> (exploit, advisory, vendor-advisory, web)
- <https://github.com/gofiber/fiber/pull/4389> (fix, issue-tracking, patch)
- <https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf> (patch)
- <https://github.com/gofiber/fiber/releases/tag/v3.4.0> (release-notes)
- <https://github.com/gofiber/fiber> (package)

## Sources

- CVE List: [CVE-2026-53624](https://www.cve.org/CVERecord?id=CVE-2026-53624), CVE Terms of Use, modified 2026-07-10
- GitHub Advisory Database: [GHSA-gv83-gqw6-9j2c](https://github.com/advisories/GHSA-gv83-gqw6-9j2c), CC-BY-4.0, modified 2026-07-24
- Go Vulnerability Database: [GO-2026-5912](https://pkg.go.dev/vuln/GO-2026-5912), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-53624](https://nvd.nist.gov/vuln/detail/CVE-2026-53624), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-53624 · Whole record: https://cve.day/CVE-2026-53624.json · Rebuilt by cve.day 2026-11-25T22:59:27.413Z
