CVE-2026-28807: Wisp Path Traversal Vulnerability Allows Arbitrary File Read

wisp Updated 13 Mar 2026

Summary

11/03/2026
Yes i
High
8.7

CVE-2026-28807: Wisp Vulnerable to Path Traversal. Affects wisp versions >= 2.1.1, < 2.2.1. Fixed in 2.2.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Wisp is a web server framework designed for building applications in the Gleam programming language. It provides functionalities for serving static files, handling requests, and managing application routes. However, a critical vulnerability has been identified in its serve_static function, which can lead to unauthorized access to sensitive files on the server.

Vulnerability Detail

The vulnerability arises from improper sanitization of file paths in the wisp.serve_static function. Specifically, the sanitization process occurs before percent-decoding, allowing an attacker to exploit encoded directory traversal sequences (e.g., %2e%2e) to access files outside the intended directory. This can lead to unauthorized reading of application source code, configuration files, and even sensitive system files, posing a significant security risk.

How To Fix

Minimum fixed version

2.2.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can copy the fixed implementation from the Wisp GitHub repository and replace references to wisp.serve_static in your codebase. The fixed implementation can be found at: https://github.com/gleam-wisp/wisp/blob/161118c431047f7ef1ff7cabfcc38981877fdd93/src/wisp.gleam#L1413-L1461.

Conclusion

The Wisp framework has a critical path traversal vulnerability that allows unauthorized file access. It is essential to update to the patched version or implement the workaround to protect your application from potential exploitation.

See every vulnerability recorded for wisp →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

An attacker can access application source code, configuration files, secrets, and potentially sensitive system files like /etc/passwd.

No, the vulnerability can be exploited by unauthenticated attackers, making it particularly dangerous.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.

If an immediate update is not possible, implement the provided workaround to mitigate the risk until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for wisp.

How To Fix

Minimum fixed version

2.2.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback