{"id":"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.","aliases":["EEF-CVE-2026-28807","GHSA-h7cj-j2vv-qw8r"],"modified":"2026-08-12T03:51:49.541514091Z","published":"2026-03-10T21:34:47.859Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28807.json","unresolved_ranges":[{"extracted_events":[{"introduced":"129dcb1fe10ab1e676145d91477535e1c90ab550"},{"fixed":"161118c431047f7ef1ff7cabfcc38981877fdd93"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"EEF","cwe_ids":["CWE-22"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gleam-wisp/wisp","events":[{"introduced":"49208beb40325811a247b85d84b7dbe57e42913d"},{"fixed":"987d3641fa038f749f68621a87b5e9a42ee9ef83"},{"fixed":"161118c431047f7ef1ff7cabfcc38981877fdd93"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"2.1.1"},{"fixed":"2.2.1"}]}}],"versions":["v2.2.0","v2.1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-28807.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}]}