{"id":"CVE-2026-73259","published":"2026-08-20T17:39:16Z","modified":"2026-08-20T19:51:19Z","title":"Mongoose: Reflected XSS via decoded URI in directory listing render","vendor":"cesanta","product":"mongoose","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00408,"percentile":0.35954,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-9cwm-487w-h25w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cesanta/mongoose/pull/3611","tags":["x_refsource_MISC"]},{"url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71","tags":["x_refsource_MISC"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.22","tags":["x_refsource_MISC"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":7.19},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"cesanta","affectedVersions":[{"vendor":"cesanta","product":"mongoose","versions":["< 7.22"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-20T19:50:57.116455Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-63498","exploited":false,"provenance":"source"}}