Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. salvo
  4. ›
  5. CVE-2026-22257

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

January 8, 2026

The function list_html generates a file view of a folder without sanitizing the files or folders names, potentially leading to XSS in cases where a website allows access to public files using this feature, allowing anyone to upload a file.

References

  • github.com/advisories/GHSA-54m3-5fxr-2f3j
  • github.com/salvo-rs/salvo
  • github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs
  • github.com/salvo-rs/salvo/security/advisories/GHSA-54m3-5fxr-2f3j
  • nvd.nist.gov/vuln/detail/CVE-2026-22257

Code Behaviors & Features

Detect and mitigate CVE-2026-22257 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.88.1

Fixed versions

  • 0.88.1

Solution

Upgrade to version 0.88.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

cargo/salvo/CVE-2026-22257.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:22 +0000.