Vulnerability in Ctx.IsFromLocal() in gofiber
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
Fiber is an Express inspired web framework built in the go language. Versions of gofiber prior to 2.49.2 did not properly restrict access to localhost. This issue impacts users of our project who rely on the `ctx.IsFromLocal` method to restrict access to localhost requests. If exploited, it could allow unauthorized access to resources intended only for localhost. Setting `X-Forwarded-For: 127.0.0.1` in a request from a foreign host, will result in true for `ctx.IsFromLocal`. Access is limited to the scope of the affected process. This issue has been patched in version `2.49.2` with commit `b8c9ede6`. Users are advised to upgrade. There are no known workarounds to remediate this vulnerability without upgrading to the patched version.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gofiber | fiber | before 2.49.2 | 2.49.2 | Patch available | CNA |
| — | github.com/gofiber/fiber (Go) | up to 1.14.6 | — | No fix listed | GHSA-3q5p-3558-364f |
| — | github.com/gofiber/fiber/v2 (Go) | before 2.49.2 | 2.49.2 | Patch available | GHSA-3q5p-3558-364f |
- fiber Vendorgofiber Affected before 2.49.2 Fixed in 2.49.2 Patch available CNA
- github.com/gofiber/fiber (Go) Vendor— Affected up to 1.14.6 Fixed in — No fix listed GHSA-3q5p-3558-364f
- github.com/gofiber/fiber/v2 (Go) Vendor— Affected before 2.49.2 Fixed in 2.49.2 Patch available GHSA-3q5p-3558-364f
Remediation
- Fix · CNA fiber (gofiber) Fixed in 2.49.2
- Fix · GHSA-3q5p-3558-364f github.com/gofiber/fiber/v2 (Go) Fixed in 2.49.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-41338
- 2026-10-03 Alias added: GHSA-3q5p-3558-364f
- 2026-10-13 EPSS moved to the 50th–90th percentile
References
Advisory 2
More gofiber Fiber vulnerabilities
- TI-2025-34555 Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder CVSS 4.0HIGH 8.7
- TI-2024-16578 Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials CVSS 3.1CRITICAL 9.8
- TI-2025-30446 Fiber panics when fiber.Ctx.BodyParser parses invalid range index CVSS 4.0HIGH 7.7
- TI-2026-23477 github.com/gofiber/fiber/v3 cache middleware can mix responses across query parameters CVSS 3.1MEDIUM 6.5
- TI-2026-20922 Fiber has a Denial of Service Vulnerability via Route Parameter Overflow CVSS 4.0MEDIUM 5.5
- TI-2026-30834 Fiber: XSS in AutoFormat Content Negotiation CVSS 4.0MEDIUM 5.3
Sources
- CVE-2023-41338 · CVE Program
- CVE-2023-41338 · NVD
- FIRST EPSS
- GHSA-3q5p-3558-364f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences