Medium severity · published May 11, 2026
CVE-2026-42554
Fiber: XSS in AutoFormat Content Negotiation
6.1
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 12% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FI
fiber · gofiber
< 2.52.13; >= 3.0.0-beta.2, < 3.1.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-42554
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-42554
Exploit
https://github.com/gofiber/fiber/security/advisories/GHSA-qjv7-627w-8qjv
More from fiber
9.8
CVE-2024-38513
Fiber is an Express-inspired web framework written in Go A vulnerability present in versions prior to 2.52.5 is a session middleware issue in GoFiber versions 2 and above
9.8
CVE-2024-25124
Fiber is a web framework written in go
9.4
CVE-2025-66630
Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure
8.8
CVE-2023-45141
Fiber is an express inspired web framework written in Go
8.8
CVE-2023-45128
Fiber is an express inspired web framework written in Go
