{"id":"CVE-2026-53624","published":"2026-07-08T19:32:08Z","modified":"2026-07-10T14:57:28Z","title":"Fiber: HSTS header never set in helmet middleware due to incorrect protocol check","vendor":"gofiber","product":"fiber","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00212,"percentile":0.11751,"provenance":"source"},"cwes":[{"id":"CWE-319","name":"Cleartext Transmission of Sensitive Information"}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-gv83-gqw6-9j2c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gofiber/fiber/pull/4389","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf","tags":["x_refsource_MISC"]},{"url":"https://github.com/gofiber/fiber/releases/tag/v3.4.0","tags":["x_refsource_MISC"]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":2.35},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"gofiber","affectedVersions":[{"vendor":"gofiber","product":"fiber","versions":["< 3.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-10T14:57:02.119046Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gofiber/fiber","vulnerableRanges":["<3.4.0"],"patched":["3.4.0"],"from":["GHSA-gv83-gqw6-9j2c"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gofiber/fiber/v3","vulnerableRanges":["<3.4.0"],"patched":["3.4.0"],"from":["GO-2026-5912"],"provenance":"source"}],"summary":{"text":"Fiber, the Go web framework, has a flaw in its helmet middleware (middleware/helmet/helmet.go) that prevents the Strict-Transport-Security header from being sent even when HSTSMaxAge is configured, because the protocol check uses c.Protocol() rather than c.Scheme(). An attacker positioned to intercept traffic can exploit the missing header to downgrade or strip HTTPS connections, with the attack requiring network access and a high-complexity condition, and no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:28Z"},"euvd":{"id":"EUVD-2026-42356","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gofiber-fiber-cve-2020-15111","parents":[{"from":"CVE-2023-41338","to":"CVE-2026-53624","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ctx.go"],"commits":["https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc","https://github.com/gofiber/fiber/commit/04dd4e7754f61768fddccacc79057e416f13e6bf"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-42554","published":"2026-05-11","fixed":"3.2.0","kev":false},{"cve":"CVE-2026-44332","published":"2026-07-08","fixed":"3.3.0","kev":false,"link":{"from":"CVE-2026-44332","to":"CVE-2026-53624","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v3","fromFixed":"3.3.0","toFixed":"3.4.0","daysApart":0}]}},{"cve":"CVE-2026-45045","published":"2026-07-08","fixed":"3.3.0","kev":false},{"cve":"CVE-2026-53624","published":"2026-07-08","fixed":"3.4.0","kev":false}],"package":"Go:github.com/gofiber/fiber/v3"}}