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.
References (1)
Core 1
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/gofiber/fiber/security/advisories/GHSA-qjv7-627w-8qjv
Scores
CVSS v3
6.1
EPSS
0.0021
EPSS Percentile
11.4%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (5)
gofiber/fiber
< 2.52.12
gofiber/fiber
0 - 2.52.13Go
gofiber/fiber
0 - 3.2.0Go
gofiber/fiber
< 2.52.13
gofiber/fiber
>= 3.0.0-beta.2, < 3.1.0
Published
May 11, 2026
Tracked Since
May 12, 2026