CVE-2026-28807: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gleam-wisp wisp
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.
AI Analysis
Technical Summary
The vulnerability in gleam-wisp wisp (versions 2.1.1 up to but not including 2.2.1) is due to improper limitation of pathnames in the wisp.serve_static function. Sanitization is applied before percent-decoding, allowing percent-encoded path traversal sequences (%2e%2e) to evade the sanitization step. After decoding, these sequences become '..', which the operating system interprets as directory traversal, enabling an attacker to read arbitrary files that the application process can access. This flaw can be exploited without authentication via a crafted HTTP request, potentially exposing sensitive application and system files.
Potential Impact
An unauthenticated attacker can read any file accessible by the application process, including sensitive files such as application source code, configuration files, secrets, and system files. This exposure can lead to information disclosure that may facilitate further attacks or compromise the confidentiality of the system and data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or fix is provided in the available data, users should monitor the vendor's communications for updates. Until a fix is available, consider implementing access controls or filtering at the web server or application gateway level to block suspicious path traversal patterns, especially percent-encoded sequences. Avoid exposing the vulnerable wisp.serve_static functionality to untrusted users if possible.
CVE-2026-28807: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gleam-wisp wisp
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in gleam-wisp wisp (versions 2.1.1 up to but not including 2.2.1) is due to improper limitation of pathnames in the wisp.serve_static function. Sanitization is applied before percent-decoding, allowing percent-encoded path traversal sequences (%2e%2e) to evade the sanitization step. After decoding, these sequences become '..', which the operating system interprets as directory traversal, enabling an attacker to read arbitrary files that the application process can access. This flaw can be exploited without authentication via a crafted HTTP request, potentially exposing sensitive application and system files.
Potential Impact
An unauthenticated attacker can read any file accessible by the application process, including sensitive files such as application source code, configuration files, secrets, and system files. This exposure can lead to information disclosure that may facilitate further attacks or compromise the confidentiality of the system and data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or fix is provided in the available data, users should monitor the vendor's communications for updates. Until a fix is available, consider implementing access controls or filtering at the web server or application gateway level to block suspicious path traversal patterns, especially percent-encoded sequences. Avoid exposing the vulnerable wisp.serve_static functionality to untrusted users if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-03-03T14:40:00.590Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69b17c642f860ef943f8b121
Added to database: 3/11/2026, 2:29:56 PM
Last enriched: 4/7/2026, 5:46:48 AM
Last updated: 4/28/2026, 9:25:37 AM
Views: 125
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.