High severity · published Mar 10, 2026
CVE-2026-28807
Path Traversal in wisp.serve_static allows arbitrary file read
7.5
CVSS
1.1%
EPSS
No
On KEV
Description
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.
The 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.
An 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.
This issue affects wisp: from 2.1.1 before 2.2.1.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
WI
wisp · gleam-wisp
2.1.1 before 2.2.1; 129dcb1fe10ab1e676145d91477535e1c90ab550 before 161118c431047f7ef1ff7cabfcc38981877fdd93 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-28807
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-28807
Third Party Advisory
https://cna.erlef.org/cves/CVE-2026-28807.html
Patch
https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93
Exploit
https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r
Third Party Advisory
https://osv.dev/vulnerability/EEF-CVE-2026-28807
More from wisp
7.5
CVE-2026-32145
Multipart form body parser bypasses body size limits in wisp
