CVE-2026-22256

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

Configuration 1 (hide)

cpe:2.3:a:salvo:salvo:*:*:*:*:*:rust:*:*

History

17 Jun 2026, 10:19

Type Values Removed Values Added
Summary
  • (es) Salvo es un framework de backend web de Rust. Antes de la versión 0.88.1, la función list_html generaba una vista de archivo de una carpeta que incluía una renderización de la ruta actual, en la que se inserta en el HTML sin una sanitización adecuada, esto lleva a XSS reflejado utilizando el hecho de que la ruta de la solicitud se decodifica y normaliza en la etapa de coincidencia pero no se inserta en bruto en la vista HTML (current.path), la única restricción aquí es que la ruta raíz (por ejemplo, /files en el ejemplo de PoC) tenga un subdirectorio (por ejemplo, los comunes styles/scripts/etc…) para que la coincidencia devuelva la página HTML de lista en lugar de la página Not Found. Este problema ha sido parcheado en la versión 0.88.1.

05 Mar 2026, 17:43

Type Values Removed Values Added
First Time Salvo salvo
Salvo
References () https://github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs#L593 - () https://github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs#L593 - Patch
References () https://github.com/salvo-rs/salvo/security/advisories/GHSA-rjf8-2wcw-f6mp - () https://github.com/salvo-rs/salvo/security/advisories/GHSA-rjf8-2wcw-f6mp - Exploit, Vendor Advisory
CPE cpe:2.3:a:salvo:salvo:*:*:*:*:*:rust:*:*

08 Jan 2026, 19:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-08 19:16

Updated : 2026-06-17 10:19


NVD link : CVE-2026-22256

Mitre link : CVE-2026-22256

CVE.ORG link : CVE-2026-22256


JSON object : View

Products Affected

salvo

  • salvo
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')