Vulnerabilityin gofiber fiber.
No public exploit found; not on exploited lists.
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.
- Upgrade fiber to 2.49.2 or later.
- Upgrade github.com/gofiber/fiber/v2 (Go) to 2.49.2, 2.49.2-0.20230906112033-b8c9ede6efa2 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 28 Aug 2023CVE ID reserved by GitHub_M.
- 8 Sep 2023Published in the CVE List.
- 26 Sep 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other fiber vulnerabilities
Same weakness: Always-incorrect control flow
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- developer.mozilla.org x_refsource_MISC
- docs.gofiber.io x_refsource_MISC
Patchminder. CVE-2023-41338: Vulnerability in gofiber fiber. https://patchminder.com/cve/cve-2023-41338/ (accessed 5 December 2026).