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

CVE-2026-22256: Salvo is vulnerable to reflected XSS in the list_html function

January 8, 2026

The function list_html generates an file view of a folder which includes a render of the current path, in which its inserted in the HTML without proper sanitation, leading to reflected XSS. The request path is decoded and normalized in the matching stage but is not inserted raw in the HTML view (current.path). The only constraint here is for the root path (e.g., /files in the PoC example) to have a subdirectory (e. g., common ones like styles/scripts/etc.) so that the matching returns the list HTML page instead of the Not Found page.

References

  • github.com/advisories/GHSA-rjf8-2wcw-f6mp
  • 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-rjf8-2wcw-f6mp
  • nvd.nist.gov/vuln/detail/CVE-2026-22256

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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-22256.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:35:42 +0000.