CVE-2026-28807
Improper Limitation of a Pathname to a Restricted Directory ('Path …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93
- github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r
- github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550
- github.com/advisories/GHSA-h7cj-j2vv-qw8r
- nvd.nist.gov/vuln/detail/CVE-2026-28807
- cna.erlef.org/cves/CVE-2026-28807.html
- osv.dev/vulnerability/EEF-CVE-2026-28807
- github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83
- nvd.nist.gov/vuln/detail/CVE-2026-28807
- cve.org/CVERecord?id=CVE-2026-28807
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.