Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-28807: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gleam-wisp wisp

0
High
VulnerabilityCVE-2026-28807cvecve-2026-28807cwe-22
Published: Tue Mar 10 2026 (03/10/2026, 21:34:47 UTC)
Source: CVE Database V5
Vendor/Project: gleam-wisp
Product: 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

AILast updated: 04/07/2026, 05:46:48 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses