{"id":"CVE-2026-28807","published":"2026-03-10T21:34:47Z","modified":"2026-11-20T05:55:49Z","title":"Path Traversal in wisp.serve_static allows arbitrary file read","vendor":"gleam-wisp","product":"wisp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01233,"percentile":0.69731,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-28807.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-28807","tags":["related"]},{"url":"https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550","tags":["related"]},{"url":"https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93","tags":["patch"]},{"url":"https://github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83","tags":["patch"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":13.95},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"gleam-wisp","affectedVersions":[{"vendor":"gleam-wisp","product":"wisp","versions":[">= 2.1.1, < 2.2.1"]},{"vendor":"gleam-wisp","product":"wisp","versions":[">= 129dcb1fe10ab1e676145d91477535e1c90ab550"]}],"fixedVersions":[{"vendor":"gleam-wisp","product":"wisp","versions":["161118c431047f7ef1ff7cabfcc38981877fdd93","987d3641fa038f749f68621a87b5e9a42ee9ef83"]}],"capec":[{"id":"CAPEC-139","name":"Relative Path Traversal"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-11T14:20:19.768057Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"wisp","vulnerableRanges":[">=2.1.1, <2.2.1"],"patched":["2.2.1"],"from":["GHSA-h7cj-j2vv-qw8r"],"provenance":"source"}],"summary":{"text":"The wisp web framework (product wisp, from gleam-wisp) has a path traversal flaw in its wisp.serve_static function, where input sanitisation runs before percent-decoding, so an encoded sequence such as %2e%2e is decoded afterwards into a directory traversal that the operating system resolves. An unauthenticated remote attacker can exploit this with a single crafted HTTP request, requiring no user interaction and no special configuration, to read any file the application process can access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:49Z"},"euvd":{"id":"EUVD-2026-10906","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gleam-wisp-wisp-cve-2026-28807","children":[{"from":"CVE-2026-28807","to":"CVE-2026-32145","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Hex:wisp","fromFixed":"2.2.1","toFixed":"2.2.2","daysApart":23},{"kind":"same-code","provenance":"machine","files":["src/wisp.gleam"],"commits":["https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550","https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93","https://github.com/gleam-wisp/wisp/commit/d8e722e22ccb42bda9d0b6248658d37ab4e9b376","https://github.com/gleam-wisp/wisp/commit/494476767cb29b905f364f07838d3c164a3c0571"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.32,"basis":"same product + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-28807","published":"2026-03-10","fixed":"2.2.1","kev":false},{"cve":"CVE-2026-32145","published":"2026-04-02","fixed":"2.2.2","kev":false}],"package":"Hex:wisp"}}