Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-42554: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gofiber fiber

0
Medium
VulnerabilityCVE-2026-42554cvecve-2026-42554cwe-79
Published: Mon May 11 2026 (05/11/2026, 21:47:17 UTC)
Source: CVE Database V5
Vendor/Project: gofiber
Product: fiber

Description

CVE-2026-42554 is a Cross-Site Scripting (XSS) vulnerability in the Go Fiber web framework affecting versions prior to 2. 52. 12 and 3. 1. 0. The issue arises when the AutoFormat() feature processes requests with an attacker-controlled Accept header set to 'text/html', causing unsafe HTML/JavaScript injection. This vulnerability allows remote attackers to inject arbitrary code via crafted requests. The vulnerability has a CVSS 4. 0 score of 5. 3, indicating medium severity.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 01:51:23 UTC

Technical Analysis

The Go Fiber web framework versions before 2.52.12 and 3.1.0 contain a Cross-Site Scripting vulnerability (CWE-79) due to improper neutralization of input during web page generation. When a request includes an Accept header with 'text/html', and the handler uses the AutoFormat() feature, Fiber may emit raw HTML based on attacker-controlled input without proper sanitization. This occurs because AutoFormat() chooses the HTML branch based on the Accept header, which can be manipulated by an attacker to inject arbitrary HTML or JavaScript. The vulnerability is fixed in Fiber versions 2.52.12 and 3.1.0.

Potential Impact

An attacker can remotely inject arbitrary HTML or JavaScript code into responses generated by the Fiber framework when the vulnerable AutoFormat() feature is used with attacker-controlled Accept headers. This can lead to Cross-Site Scripting attacks, potentially allowing theft of user credentials, session hijacking, or other malicious actions in the context of the victim's browser. The CVSS 4.0 score of 5.3 reflects a medium severity impact with network attack vector and no privileges required.

Mitigation Recommendations

This vulnerability is fixed in Fiber versions 2.52.12 and 3.1.0. Users should upgrade to at least these versions to remediate the issue. Since no official remediation level or vendor advisory content is provided, patch status is inferred from the version information in the description. There are no indications that the vulnerability is mitigated by configuration or that no action is required. Therefore, upgrading the affected Fiber versions is the recommended mitigation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-28T16:56:50.191Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a028743cbff5d86108b5065

Added to database: 5/12/2026, 1:49:55 AM

Last enriched: 5/12/2026, 1:51:23 AM

Last updated: 5/12/2026, 3:49:48 AM

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses