CVE-2026-28807
HIGH 8.7CVSS 4.0Path Traversal in wisp.serve_static allows arbitrary file read
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.
- Published
- 10 Mar 2026
- Last modified
- 25 Nov 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- EEF-CVE-2026-28807GHSA-h7cj-j2vv-qw8r
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-28807JSONOSV GHSA-h7cj-j2vv-qw8rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | EEF | CVSS 4.0 | HIGH 8.7 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gleam-wisp | wispcpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:* |
>= 2.1.1, < 2.2.1 | 2.2.1 |
| CVE List | https://repo.hex.pm | wispcpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:* |
>= 2.1.1, < 2.2.1 | 2.2.1 |
| CVE List | https://github.com | gleam-wisp/wispcpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:* |
>= 129dcb1fe10ab1e676145d91477535e1c90ab550 | |
| OSV | Hex | wisp | >= 2.1.1, < 2.2.1 | 2.2.1 |
References
- https://cna.erlef.org/cves/CVE-2026-28807.html · Third Party Advisory, related, WEB
- https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550 · related, WEB
- https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93 · Patch, FIX, WEB
- https://github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83 · patch, FIX
- https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r · Exploit, Patch, Vendor Advisory, vendor-advisory, related, ADVISORY, WEB
- https://osv.dev/vulnerability/EEF-CVE-2026-28807 · Third Party Advisory, related, WEB
- https://hex.pm/packages/wisp · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2026-28807 · ADVISORY
- https://github.com/gleam-wisp/wisp · PACKAGE
History
- 25 Nov 2026 20:32 UTC · CVE List: first stored (published 10 Mar 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 10 Mar 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 11 Mar 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 10 Mar 2026)