CVE-2026-28807 Details
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.
A path traversal vulnerability has been identified in the Gleam Wisp framework, specifically in versions 2.1.1 prior to 2.2.1. The issue arises in the 'serve_static' function, where improper sanitization of the request path allows for percent-encoded traversal sequences to bypass security measures. This vulnerability enables an unauthenticated attacker to read any file accessible by the application process, including sensitive data such as application source code, configuration files, secrets, and system files.
Users can update to Gleam Wisp version 2.2.1, which addresses the vulnerability by properly sanitizing the request path after percent-decoding. Alternatively, the fixed implementation can be copied into the codebase, replacing references to 'wisp.serve_static' with the updated version.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-28807.html | EEF | Third Party Advisory |
| https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550 | EEF | |
| https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93 | EEF | Patch |
| https://github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83 | EEF | |
| https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r | EEF | ExploitPatchVendor Advisory |
| https://osv.dev/vulnerability/EEF-CVE-2026-28807 | EEF | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | EEF |
Affected Products
| Product | Versions |
|---|---|
| gleam-wisp wisp | >= 2.1.1, < 2.2.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | CVE Modified | EEF |
| Nov 20, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | EEF |
| May 27, 2026 | Initial Analysis | [email protected] |
| Apr 6, 2026 | CVE Modified | EEF |
| Mar 10, 2026 | New CVE Received | EEF |