{"id":"CVE-2026-28807","aliases":["EEF-CVE-2026-28807","GHSA-h7cj-j2vv-qw8r"],"url":"https://o3.security/vulnerability/CVE-2026-28807","summary":"Path Traversal in wisp.serve_static allows arbitrary file read","details":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in gleam-wisp wisp allows arbitrary file read via percent-encoded path traversal.\n\nThe wisp.serve_static function is vulnerable to path traversal because sanitization runs before percent-decoding. The encoded sequence %2e%2e passes through string.replace unchanged, then uri.percent_decode converts it to .., which the OS resolves as directory traversal when the file is read.\n\nAn unauthenticated attacker can read any file readable by the application process in a single HTTP request, including application source code, configuration files, secrets, and system files.\n\nThis issue affects wisp: from 2.1.1 before 2.2.1.","published":"2026-03-10T21:34:47.859Z","modified":"2026-08-12T03:51:49.541514091Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Hex","name":"wisp","fixedVersion":"2.2.1"}],"fix":{"url":"https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93","label":"gleam-wisp/wisp@161118c"},"references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-28807.html"},{"type":"WEB","url":"https://github.com"},{"type":"WEB","url":"https://osv.dev/vulnerability/EEF-CVE-2026-28807"},{"type":"WEB","url":"https://repo.hex.pm"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28807.json"},{"type":"ADVISORY","url":"https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28807"},{"type":"FIX","url":"https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93"},{"type":"PACKAGE","url":"https://github.com/gleam-wisp/wisp"},{"type":"PACKAGE","url":"https://github.com/gleam-wisp/wisp.git"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:49.541514091Z"}}