{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "7.22"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a9df523f76f43a38bd53b4232b9cfd4c16869e71"
            },
            {
              "fixed": "beb73a65a99619ff349c59037ea5197f27c7e533"
            }
          ],
          "repo": "https://github.com/cesanta/mongoose",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9cwm-487w-h25w"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73259.json"
  },
  "details": "Mongoose is an embedded web server and network library. Prior to 7.22, a remote attacker can send a crafted percent-encoded request path to a deployment using MG_ENABLE_DIRLIST and persuade a user to visit it. The mg_http_serve_dir() and listdir() path in src/http.c places the decoded request URI into the title and h1 elements without HTML entity encoding. The resulting reflected cross-site scripting executes in the Mongoose origin and can expose session data or perform actions as the victim. This issue is fixed in version 7.22.",
  "id": "CVE-2026-73259",
  "modified": "2026-09-11T03:30:49.831954507Z",
  "published": "2026-08-20T17:39:16.147Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/cesanta/mongoose/releases/tag/7.22"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73259.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/cesanta/mongoose/security/advisories/GHSA-9cwm-487w-h25w"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-73259"
    },
    {
      "type": "FIX",
      "url": "https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71"
    },
    {
      "type": "FIX",
      "url": "https://github.com/cesanta/mongoose/pull/3611"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Mongoose: Reflected XSS via decoded URI in directory listing render"
}