Skip to content
Heist/ feed
Back to feed
High

Salvo is vulnerable to reflected XSS in the list_html function

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-22256
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 22:22 UTC · Revision 1

Source evidence

Salvo is vulnerable to reflected XSS in the list_html function

core-osv · Original source

Published 8 Jan 2026, 18:21 UTC

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.

osv:CVE-2026-22256
Complete source record
{
  "id": "621075c148121ba11f053e5df6dcf2af0ce7be82c28fa5ff91cc6be04ce7accd",
  "url": "https://osv.dev/vulnerability/CVE-2026-22256",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Salvo is vulnerable to reflected XSS in the list_html function",
    "summary": "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.",
    "evidence": "osv:CVE-2026-22256",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-22256",
      "aliases": [
        "CVE-2026-22256",
        "GHSA-rjf8-2wcw-f6mp"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/salvo-rs/salvo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6d3cd29e80a583c07f73917991471290f5480315"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.88.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:salvo:salvo:*:*:*:*:*:rust:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.88.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.88.0",
            "v0.87.1",
            "v0.87.0",
            "v0.86.0",
            "v0.85.0",
            "v0.84.2",
            "v0.84.1",
            "v0.84.0",
            "v0.83.0",
            "v0.82.0",
            "v0.81.0",
            "v0.80.0",
            "v0.79.0",
            "v0.78.0",
            "v0.77.1",
            "v0.77.0",
            "v0.76.2",
            "v0.76.1",
            "v0.76.0",
            "v0.75.0",
            "v0.74.3",
            "v0.74.2",
            "v0.74.1",
            "v0.74.0",
            "v0.73.0",
            "v0.72.4",
            "v0.72.3",
            "v0.72.2",
            "v0.72.1",
            "v0.72.0",
            "v0.71.1",
            "v0.71.0",
            "v0.70.0",
            "v0.69.0",
            "v0.68.5",
            "v0.68.4",
            "v0.68.3",
            "v0.68.2",
            "v0.68.1",
            "v0.68.0",
            "v0.67.2",
            "v0.67.1",
            "v0.67.0",
            "v0.66.2",
            "v0.66.1",
            "v0.65.2",
            "v0.65.1",
            "v0.65.0",
            "v0.64.2",
            "v0.64.1",
            "v0.64.0",
            "v0.63.1",
            "v0.63.0",
            "v0.61.0",
            "v0.60.0",
            "v0.59.1",
            "v0.59.0",
            "v0.58.5",
            "v0.58.4",
            "v0.58.3",
            "v0.58.2",
            "v0.58.1",
            "v0.58.0",
            "v0.57.0",
            "v0.56.0",
            "v0.55.5",
            "v0.55.4",
            "v0.55.3",
            "v0.55.2",
            "v0.55.1",
            "v0.55.0",
            "v0.54.3",
            "v0.54.1",
            "v0.54.0",
            "v0.53.0",
            "v0.52.1",
            "v0.52.0",
            "v0.51.0",
            "v0.50.5",
            "v0.50.4",
            "v0.50.3",
            "v0.50.2",
            "v0.50.1",
            "v0.49.1",
            "v0.49.0",
            "v0.48.2",
            "v0.48.1",
            "v0.48.0",
            "v0.47.0",
            "v0.46.0",
            "v0.45.0",
            "v0.44.1",
            "v0.44.0",
            "v0.43.0",
            "v0.42.1",
            "v0.42.0",
            "v0.41.1",
            "v0.37.2",
            "v0.37.1",
            "v0.37.0",
            "v0.36.0",
            "v0.35.2",
            "v0.35.1",
            "v0.34.3",
            "v0.34.2",
            "v0.33.2",
            "v0.33.1",
            "v0.32.0",
            "v0.31.1",
            "v0.31.0",
            "v0.30.0",
            "v0.29.1",
            "v0.29.0",
            "v0.28.2",
            "v0.28.1",
            "v0.27.0",
            "v0.26.1",
            "v0.26.0",
            "v0.25.1",
            "v0.25.0",
            "v0.24.4",
            "v0.24.2",
            "v0.24.1",
            "v0.24.0",
            "v0.23.3",
            "v0.23.2",
            "v0.23.1",
            "v0.23.0",
            "v0.22.2",
            "v0.22.1",
            "v0.22.0",
            "v0.21.7",
            "v0.21.5",
            "v0.21.4",
            "v0.21.3",
            "v0.21.2",
            "v0.21.1",
            "v0.21.0",
            "v0.20.0",
            "v0.19.1",
            "v0.19.0",
            "v0.18.4",
            "v0.18.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22256.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.159270084Z",
      "provider": "osv",
      "references": [
        "https://github.com/salvo-rs/salvo/blob/16efeba312a274739606ce76366d921768628654/crates/serve-static/src/dir.rs#L593",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22256.json",
        "https://github.com/salvo-rs/salvo/security/advisories/GHSA-rjf8-2wcw-f6mp",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-22256"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22256.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-22256",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490524,
  "published_at": "2026-01-08T18:21:57.861+00:00"
}