{"cve":"CVE-2023-41338","nvd":{"published":"2023-09-08T19:15:43.977","modified":"2026-06-17T06:21:51.730","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-670"],"references":["https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For","https://docs.gofiber.io/api/ctx#isfromlocal","https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc","https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f","https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"],"products":["gofiber:fiber"],"source":"nvd","synced_at":"2026-10-19T21:39:24.235896374+00:00"},"epss":{"cve":"CVE-2023-41338","score":0.00655,"percentile":0.51384,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3q5p-3558-364f","url":"https://osv.dev/vulnerability/GHSA-3q5p-3558-364f","summary":"Fiber unauthorized access vulnerability in `ctx.IsFromLocal()`","modified":"2026-09-10T03:50:03.184878597Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","ranges":["<=1.14.6"],"fixed":[]},{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","ranges":["<2.49.2"],"fixed":["2.49.2"]}]},{"id":"GO-2023-2052","url":"https://osv.dev/vulnerability/GO-2023-2052","summary":"IsFromLocal local address check can be circumvented in github.com/gofiber/fiber/v2","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","ranges":["<2.49.2-0.20230906112033-b8c9ede6efa2"],"fixed":["2.49.2-0.20230906112033-b8c9ede6efa2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}