# CVE-2026-42554: Fiber: XSS in AutoFormat Content Negotiation

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T20:13:23.000Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: GHSA-qjv7-627w-8qjv, GO-2026-5585
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gofiber fiber: < 2.52.13; >= 3.0.0-beta.2, < 3.1.0; before 2.52.12; from 3.0.0 before 3.1.0
- github.com/gofiber/fiber/v3 (Go): before 3.2.0
- github.com/gofiber/fiber/v2 (Go): before 2.52.13

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/gofiber/fiber/security/advisories/GHSA-qjv7-627w-8qjv> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42554> (advisory)
- <https://github.com/gofiber/fiber> (package)

## Sources

- CVE List: [CVE-2026-42554](https://www.cve.org/CVERecord?id=CVE-2026-42554), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-qjv7-627w-8qjv](https://github.com/advisories/GHSA-qjv7-627w-8qjv), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5585](https://pkg.go.dev/vuln/GO-2026-5585), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-42554](https://nvd.nist.gov/vuln/detail/CVE-2026-42554), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42554 · Whole record: https://cve.day/CVE-2026-42554.json · Rebuilt by cve.day 2026-11-25T22:59:21.309Z
