{"id":"CVE-2026-42554","published":"2026-05-11T21:47:17Z","modified":"2026-05-15T18:24:38Z","title":"Fiber: XSS in AutoFormat Content Negotiation","vendor":"gofiber","product":"fiber","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00307,"percentile":0.15999,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-qjv7-627w-8qjv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":3.2},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"gofiber","affectedVersions":[{"vendor":"gofiber","product":"fiber","versions":["< 2.52.13",">= 3.0.0-beta.2, < 3.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-15T18:24:24.733312Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gofiber/fiber/v3","vulnerableRanges":["<3.2.0"],"patched":["3.2.0"],"from":["GHSA-qjv7-627w-8qjv","GO-2026-5585"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gofiber/fiber/v2","vulnerableRanges":["<2.52.13"],"patched":["2.52.13"],"from":["GHSA-qjv7-627w-8qjv","GO-2026-5585"],"provenance":"source"}],"summary":{"text":"The Fiber Go web framework's AutoFormat() content negotiation feature contains a cross-site scripting flaw, in which the HTML response branch emits attacker-influenced data unescaped when a request carries an Accept: text/html header. An unauthenticated remote attacker can inject arbitrary HTML and JavaScript by sending such a request to a handler that passes attacker-influenced data into AutoFormat(), and exploitation requires a victim to interact with the page (user interaction).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:19Z"},"euvd":{"id":"EUVD-2026-29328","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-25882","published":"2026-02-24","fixed":"3.1.0","kev":false,"link":{"from":"CVE-2026-25882","to":"CVE-2026-42554","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v3","fromFixed":"3.1.0","toFixed":"3.2.0","daysApart":76},{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v2","fromFixed":"2.52.12","toFixed":"2.52.13","daysApart":76}]}},{"cve":"CVE-2026-25891","published":"2026-02-24","fixed":"3.1.0","kev":false},{"cve":"CVE-2026-25899","published":"2026-02-24","fixed":"3.1.0","kev":false},{"cve":"CVE-2026-30246","published":"2026-05-05","fixed":"3.2.0","kev":false},{"cve":"CVE-2026-42554","published":"2026-05-11","fixed":"3.2.0","kev":false},{"cve":"CVE-2026-44332","published":"2026-07-08","fixed":"3.3.0","kev":false,"link":{"from":"CVE-2026-42554","to":"CVE-2026-44332","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v3","fromFixed":"3.2.0","toFixed":"3.3.0","daysApart":58}]}},{"cve":"CVE-2026-45045","published":"2026-07-08","fixed":"3.3.0","kev":false,"link":{"from":"CVE-2026-42554","to":"CVE-2026-45045","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v3","fromFixed":"3.2.0","toFixed":"3.3.0","daysApart":58},{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v2","fromFixed":"2.52.13","toFixed":"2.52.14","daysApart":58}]}},{"cve":"CVE-2026-53624","published":"2026-07-08","fixed":"3.4.0","kev":false}],"package":"Go:github.com/gofiber/fiber/v3"}}