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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-08T18:21:57.861Z
- Modified: 2026-06-17T10:19:38.800Z
- Also known as: GHSA-rjf8-2wcw-f6mp
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- salvo-rs salvo: < 0.88.1
- salvo (crates.io): before 0.88.1
- salvo salvo: before 0.88.1

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L`

## References

- <https://github.com/salvo-rs/salvo/security/advisories/GHSA-rjf8-2wcw-f6mp> (exploit, vendor-advisory, web)
- <https://github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs#L593> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22256> (advisory)
- <https://github.com/salvo-rs/salvo> (package)

## Sources

- CVE List: [CVE-2026-22256](https://www.cve.org/CVERecord?id=CVE-2026-22256), CVE Terms of Use, modified 2026-01-08
- GitHub Advisory Database: [GHSA-rjf8-2wcw-f6mp](https://github.com/advisories/GHSA-rjf8-2wcw-f6mp), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-22256](https://nvd.nist.gov/vuln/detail/CVE-2026-22256), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22256 · Whole record: https://cve.day/CVE-2026-22256.json · Rebuilt by cve.day 2026-11-25T22:59:12.681Z
