Live threats

All CVEs / Gofiber

CVE-2026-42554Gofiber Fiber

Medium 5.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fiber.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gofiberfiber< 2.52.12
gofiberfiber≥ 3.0.0 < 3.1.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.