{"id":"CVE-2026-22256","published":"2026-01-08T18:21:57Z","modified":"2026-01-08T18:39:58Z","title":"Salvo is vulnerable to reflected XSS in the list_html function","vendor":"salvo-rs","product":"salvo","tier":"tail","description":{"text":"Salvo is a Rust web backend framework. Prior to version 0.88.1, the function list_html generate an file view of a folder which include a render of the current path, in which its inserted in the HTML without proper sanitation, this leads to reflected XSS using the fact that request path is decoded and normalized in the matching stage but not is inserted raw in the html view (current.path), the only constraint here is for the root path (eg. /files in the PoC example) to have a sub directory (e.g common ones styles/scripts/etc…) so that the matching return the list HTML page instead of the Not Found page. This issue has been patched in version 0.88.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00334,"percentile":0.27467,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/salvo-rs/salvo/security/advisories/GHSA-rjf8-2wcw-f6mp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs#L593","tags":["x_refsource_MISC"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":5.49},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"salvo-rs","affectedVersions":[{"vendor":"salvo-rs","product":"salvo","versions":["< 0.88.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-08T18:39:24.943801Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"salvo","vulnerableRanges":["<0.88.1"],"patched":["0.88.1"],"from":["GHSA-rjf8-2wcw-f6mp"],"provenance":"source"}],"summary":{"text":"Salvo, a Rust web backend framework, has a reflected cross-site scripting flaw in its list_html function, which generates directory listing pages and inserts the current request path into the HTML without sanitisation. The flaw affects versions prior to 0.88.1, which contain the fix. An attacker can exploit it over the network by convincing a user to follow a crafted link, since user interaction is required, and no authentication is needed. Exploitation depends on the target root path having a subdirectory, so that the request returns the listing page rather than a Not Found response.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:21Z"},"euvd":{"id":"EUVD-2026-1422","exploited":false,"provenance":"source"}}