# CVE-2026-28807: Path Traversal in wisp.serve_static allows arbitrary file read

- Severity: High 8.7 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-10T21:34:47.859Z
- Modified: 2026-11-25T17:23:05.435Z
- Also known as: GHSA-h7cj-j2vv-qw8r, EEF-CVE-2026-28807
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- wisp: from 2.1.1 before 2.2.1
- gleam-wisp/wisp: from 129dcb1fe10ab1e676145d91477535e1c90ab550 before *
- wisp (Hex): from 2.1.1 before 2.2.1
- https://github.com/gleam-wisp/wisp: from 129dcb1fe10ab1e676145d91477535e1c90ab550 before 161118c431047f7ef1ff7cabfcc38981877fdd93; before 987d3641fa038f749f68621a87b5e9a42ee9ef83
- gleam-wisp wisp: from 2.1.1 before 2.2.1

## Every score

- EEF: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- Erlang Ecosystem Foundation: 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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r> (exploit, advisory, patch, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-28807.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-28807> (related, third-party-advisory, web)
- <https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550> (related, web)
- <https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93> (fix, patch, web)
- <https://github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28807> (advisory)
- <https://github.com/gleam-wisp/wisp> (package)
- <https://hex.pm/packages/wisp> (package)

## Sources

- CVE List: [CVE-2026-28807](https://www.cve.org/CVERecord?id=CVE-2026-28807), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-h7cj-j2vv-qw8r](https://github.com/advisories/GHSA-h7cj-j2vv-qw8r), CC-BY-4.0, modified 2026-06-08
- Erlang Ecosystem Foundation: [EEF-CVE-2026-28807](https://osv.dev/vulnerability/EEF-CVE-2026-28807), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-28807](https://nvd.nist.gov/vuln/detail/CVE-2026-28807), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-28807 · Whole record: https://cve.day/CVE-2026-28807.json · Rebuilt by cve.day 2026-11-25T22:59:15.671Z
