CVE-2026-22257 Salvo is vulnerable to stored XSS in the list_html function by uploading files with malicious names
HighCVSS 8.8
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
Salvo is a Rust web backend framework. Prior to version 0.88.1, the function list_html generates a file view of a folder without sanitizing the files or folders names, this may potentially lead to XSS in cases where a website allow the access to public files using this feature and anyone can upload a file. This issue has been patched in version 0.88.1.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io salvo(crates.io) | < 0.88.1 | 0.88.1 | Fixed |
| salvo | < 0.88.1 | 0.88.1 | Fixed |
| salvo-rs salvo | = < 0.88.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io salvo(crates.io) | < 0.88.1 | 0.88.1 |
| salvo-rs salvo | = < 0.88.1 | No fix listed |
| salvo | < 0.88.1 | 0.88.1 |
References
- https://github.com/salvo-rs/salvo/security/advisories/GHSA-54m3-5fxr-2f3j exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs#L581 patch
- github.com