CVE-2026-42554: Fiber: XSS in AutoFormat Content Negotiation
Vulnerability summary
CVE-2026-42554 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in gofiber fiber. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 22.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 11-05-2026PublishedVulnerability first disclosed.
- 15-05-2026Last modifiedVulnerability information updated.
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 metrics
6 scores · 5 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- OSV · GoEcosystem advisory · calculated5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- NVDNIST5.3MediumCVSS: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
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
Increase +0.09 pp
From 0.21% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundFiber
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard4 products
- gatus< 5.35.0-r11
- gatus-fips< 5.35.0-r9
- versitygw< 1.4.1-r2
- versitygw-fips< 1.4.1-r3
Github.com/gofiber/fiber2 products
- v2< 2.52.13
- v3< 3.2.0
Gofiber1 product
- fiber< 2.52.13 | ≥ 3.0.0-beta.2, < 3.1.0 | < 2.52.12 | ≥ 3.0.0, < 3.1.0
Wolfi1 product
- gatus< 5.35.0-r11
4 vendors · 8 products
References
4 links- github.com/gofiber/fiber/security/advisories/GHSA-qjv7-627w-8qjvX Refsource CONFIRMAdvisoryWEBExploitMitigationVendor Advisory
- github.com/gofiber/fiberPACKAGE