{"dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": {"cveId": "CVE-2026-28807", "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db", "state": "PUBLISHED", "assignerShortName": "EEF", "dateReserved": "2026-03-03T14:40:00.590Z", "datePublished": "2026-03-10T21:34:47.859Z", "dateUpdated": "2026-11-20T02:58:02.574Z"}, "containers": {"cna": {"affected": [{"collectionURL": "https://repo.hex.pm", "cpes": ["cpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:*"], "defaultStatus": "unaffected", "packageName": "wisp", "packageURL": "pkg:hex/wisp", "product": "wisp", "repo": "https://github.com/gleam-wisp/wisp", "vendor": "gleam-wisp", "versions": [{"lessThan": "2.2.1", "status": "affected", "version": "2.1.1", "versionType": "semver"}]}, {"collectionURL": "https://github.com", "cpes": ["cpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:*"], "defaultStatus": "unaffected", "packageName": "gleam-wisp/wisp", "packageURL": "pkg:github/gleam-wisp/wisp", "product": "wisp", "repo": "https://github.com/gleam-wisp/wisp", "vendor": "gleam-wisp", "versions": [{"changes": [{"at": "987d3641fa038f749f68621a87b5e9a42ee9ef83", "status": "unaffected"}, {"at": "161118c431047f7ef1ff7cabfcc38981877fdd93", "status": "unaffected"}], "lessThan": "*", "status": "affected", "version": "129dcb1fe10ab1e676145d91477535e1c90ab550", "versionType": "git"}]}], "cpeApplicability": [{"nodes": [{"cpeMatch": [{"criteria": "cpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.2.1", "versionStartIncluding": "2.1.1", "vulnerable": true}], "negate": false, "operator": "OR"}], "operator": "AND"}], "credits": [{"lang": "en", "type": "finder", "value": "John Downey"}, {"lang": "en", "type": "remediation developer", "value": "Louis Pilfold"}], "datePublic": "2026-03-10T21:34:47.000Z", "descriptions": [{"lang": "en", "supportingMedia": [{"base64": false, "type": "text/html", "value": "<p>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.</p>\n<p>The <code>wisp.serve_static</code> function is vulnerable to path traversal because sanitization runs before percent-decoding. The encoded sequence <code>%2e%2e</code> passes through <code>string.replace</code> unchanged, then <code>uri.percent_decode</code> converts it to <code>..</code>, which the OS resolves as directory traversal when the file is read.</p>\n<p>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.</p>\n<p>This issue affects wisp: from 2.1.1 before 2.2.1.</p>"}, {"base64": false, "type": "text/markdown", "value": "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.\n\nThe `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.\n\nAn 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.\n\nThis issue affects wisp: from 2.1.1 before 2.2.1."}], "value": "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.\n\nThe 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.\n\nAn 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.\n\nThis issue affects wisp: from 2.1.1 before 2.2.1."}], "impacts": [{"capecId": "CAPEC-139", "descriptions": [{"lang": "en", "value": "CAPEC-139 Relative Path Traversal"}]}], "metrics": [{"cvssV4_0": {"Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "Safety": "NOT_DEFINED", "attackComplexity": "LOW", "attackRequirements": "NONE", "attackVector": "NETWORK", "baseScore": 8.7, "baseSeverity": "HIGH", "privilegesRequired": "NONE", "providerUrgency": "NOT_DEFINED", "subAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "userInteraction": "NONE", "valueDensity": "NOT_DEFINED", "vectorString": "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", "version": "4.0", "vulnAvailabilityImpact": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "NONE", "vulnerabilityResponseEffort": "NOT_DEFINED"}, "format": "CVSS", "scenarios": [{"lang": "en", "value": "GENERAL"}]}], "problemTypes": [{"descriptions": [{"cweId": "CWE-22", "description": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory", "lang": "en", "type": "CWE"}]}], "providerMetadata": {"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db", "shortName": "EEF", "dateUpdated": "2026-11-20T02:58:02.574Z"}, "references": [{"name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in wisp", "tags": ["vendor-advisory", "related"], "url": "https://github.com/gleam-wisp/wisp/security/advisories/GHSA-h7cj-j2vv-qw8r"}, {"name": "EEF CNA record for CVE-2026-28807", "tags": ["related"], "url": "https://cna.erlef.org/cves/CVE-2026-28807.html"}, {"name": "OSV record EEF-CVE-2026-28807", "tags": ["related"], "url": "https://osv.dev/vulnerability/EEF-CVE-2026-28807"}, {"name": "Introducing commit 129dcb1 in gleam-wisp/wisp", "tags": ["related"], "url": "https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550"}, {"name": "Fix commit 987d364 in gleam-wisp/wisp", "tags": ["patch"], "url": "https://github.com/gleam-wisp/wisp/commit/987d3641fa038f749f68621a87b5e9a42ee9ef83"}, {"name": "Fix commit 161118c in gleam-wisp/wisp", "tags": ["patch"], "url": "https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93"}], "source": {"discovery": "EXTERNAL"}, "title": "Path Traversal in wisp.serve_static allows arbitrary file read"}, "adp": [{"metrics": [{"other": {"type": "ssvc", "content": {"timestamp": "2026-03-11T14:20:19.768057Z", "id": "CVE-2026-28807", "options": [{"Exploitation": "none"}, {"Automatable": "yes"}, {"Technical Impact": "partial"}], "role": "CISA Coordinator", "version": "2.0.3"}}}], "title": "CISA ADP Vulnrichment", "providerMetadata": {"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2026-03-11T14:20:59.654Z"}}]}}