{"answers":{"affected":"3 open source packages ship an affected version, including wisp. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-28807 in the wild and no public exploit code.","fix":"Upgrade wisp to 2.2.1 or later.","what":"CVE-2026-28807 is a high-severity path traversal vulnerability in gleam-wisp wisp, published on 10 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-28807 and fix it if it is affected.\n\nWhat it is: CVE-2026-28807 is a high-severity path traversal vulnerability in gleam-wisp wisp, published on 10 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-28807 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wisp (Hex): affected from 2.1.1; fixed in 2.2.1\n- wisp (Hex): affected from 2.1.1; fixed in 2.2.1\n- wisp (Hex): affected from 2.1.1; fixed in 2.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-28807/ (Markdown: https://insights.sbomify.com/CVE-2026-28807/index.md)","id":"CVE-2026-28807","markdown":"https://insights.sbomify.com/CVE-2026-28807/index.md","name":"CVE-2026-28807","record":{"aliases":["EEF-CVE-2026-28807","GHSA-h7cj-j2vv-qw8r"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Gleam web library","requires_auth":"none","summary":"An unauthenticated attacker can read arbitrary files via percent-encoded path traversal in the wisp.serve_static function.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"wisp","vendor":"gleam-wisp"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"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"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.\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.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path Traversal in wisp.serve_static allows arbitrary file read","id":"CVE-2026-28807","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"ScriptAlias CGI targets bypass directory auth in inets httpd (mod_auth vs mod_cgi path mismatch)","id":"CVE-2026-28808"},"packages":[{"ecosystem":"Hex","fixed":["2.2.1"],"introduced":["2.1.1"],"last_affected":[],"package":"wisp","purl":"pkg:hex/wisp","source":"EEF-CVE-2026-28807"},{"ecosystem":"Hex","fixed":["2.2.1"],"introduced":["2.1.1"],"last_affected":[],"package":"wisp","purl":null,"source":"GHSA-h7cj-j2vv-qw8r"},{"ecosystem":"Hex","fixed":["2.2.1"],"introduced":["2.1.1"],"last_affected":[],"package":"wisp","purl":"pkg:hex/wisp","source":"GHSA-h7cj-j2vv-qw8r"}],"prev":{"headline":"Improper authorization in device bulk actions and device update API allows cross-organization device control","id":"CVE-2026-28806"},"products":["wisp"],"published":"2026-03-10","related":[{"cvss_score":8.7,"headline":"Multipart form body parser bypasses body size limits in wisp","id":"CVE-2026-32145","kev_date_added":null,"published":"2026-04-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-06","vendors":["gleam-wisp"]},"summary":"An unauthenticated attacker can read arbitrary files via percent-encoded path traversal in the wisp.serve_static function.","url":"https://insights.sbomify.com/CVE-2026-28807/"}