CVE-2026-42554Gofiber Fiber
Medium 5.3 No auth needed
Follow: this CVE · Gofiber · Gofiber Fiber We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 4.0
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- May 11, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Fiber is a web framework for Go. Prior to 2.52.12 and 3.1.0, Cross-Site Scripting vulnerability in Go Fiber allows a remote attacker to inject arbitrary HTML/JavaScript by supplying Accept: text/html on any request whose handler passes attacker-influenced data to the AutoFormat() feature. The developer opts into content negotiation by calling AutoFormat(), but does not opt into raw HTML emission for a particular request; Fiber chooses that branch from attacker-controlled Accept. The html branch is the sole outlier in a method whose name (AutoFormat) and symmetrical structure actively telegraph "safe, format-agnostic reply." This vulnerability is fixed in 2.52.12 and 3.1.0.
What to do
- Apply the vendor's security update for Fiber.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gofiber/fiber/v2 |
< 2.52.13 |
2.52.13 |
go get github.com/gofiber/fiber/v2@v2.52.13 |
| Go | github.com/gofiber/fiber/v2 |
< 2.52.13 |
2.52.13 |
go get github.com/gofiber/fiber/v2@v2.52.13 |
| Go | github.com/gofiber/fiber/v3 |
< 3.2.0 |
3.2.0 |
go get github.com/gofiber/fiber/v3@v3.2.0 |
| Go | github.com/gofiber/fiber/v3 |
< 3.2.0 |
3.2.0 |
go get github.com/gofiber/fiber/v3@v3.2.0 |
Per OSV / GitHub Advisories (GHSA-qjv7-627w-8qjv, GO-2026-5585). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gofiber | fiber | < 2.52.12 |
| gofiber | fiber | ≥ 3.0.0 < 3.1.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21551-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23216-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23227-1 · Aug 10, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Mitigation Vendor Advisory