CVE-2026-28807
published high CVSS 4.0 · 8.7Path Traversal in wisp.serve_static allows arbitrary file read
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gleam-wisp | — | wisp2.1.1 to < 2.2.1 · Other versions: unaffected | Affected | Not stated | EEF |
| gleam-wisp | — | gleam-wisp/wispwisp · 129dcb1fe10ab1e676145d91477535e1c90ab550 and later (affected · git); changes: unaffected at 161118c431047f7ef1ff7cabfcc38981877fdd93, unaffected at 987d3641fa038f749f68621a87b5e9a42ee9ef83 · Other versions: unaffected | Version-specific | Not stated | EEF |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gleam-wisp | wisp | 2.1.1 to < 2.2.1 (affected · semver)Default: unaffected | EEF · cna |
| gleam-wisp | wisp | 129dcb1fe10ab1e676145d91477535e1c90ab550 and later (affected · git); changes: unaffected at 161118c431047f7ef1ff7cabfcc38981877fdd93, unaffected at 987d3641fa038f749f68621a87b5e9a42ee9ef83Default: unaffected | EEF · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
6- EEF CNA record for CVE-2026-28807 https://cna.erlef.org/cves/CVE-2026-28807.html
- Introducing commit 129dcb1 in gleam-wisp/wisp https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550
- Fix commit 161118c in gleam-wisp/wisp https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93
- Fix commit 987d364 in gleam-wisp/wisp https://github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83
- Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in wisp https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r
- OSV record EEF-CVE-2026-28807 https://osv.dev/vulnerability/EEF-CVE-2026-28807
Provider assertions
2EEF · cna
Path Traversal in wisp.serve_static allows arbitrary file read
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d620822cd44678e34696cd121186ab9f36860872c5bd3dc871774eb1fe7f2c5e
- Ingested
- 20 Nov 2026, 06:03:31 UTC
- Source record
- Official CVE record