{"id":"CVE-2026-73259","aliases":["CVE-2026-73259"],"related":[],"kind":"vulnerability","state":"published","title":"Mongoose: Reflected XSS via decoded URI in directory listing render","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Mongoose es un servidor web incrustado y una biblioteca de red. Antes de la versión 7.22, un atacante remoto puede enviar una ruta de solicitud codificada en porcentaje y manipulada a una implementación que utiliza MG_ENABLE_DIRLIST y persuadir a un usuario para que la visite. La ruta mg_http_serve_dir() y listdir() en src/http.c coloca la URI de solicitud decodificada en los elementos title y h1 sin codificación de entidades HTML. El cross-site scripting reflejado resultante se ejecuta en el origen de Mongoose y puede exponer datos de sesión o realizar acciones como la víctima. Este problema está corregido en la versión 7.22.","source":"nvd"}],"published":"2026-08-20T17:39:16.147Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 7.22","status":"affected"}],"vendor":"cesanta","product":"mongoose","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"7.22"}],"vendor":"cesanta","product":"mongoose","cpe":"cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-9cwm-487w-h25w","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cesanta/mongoose/pull/3611","tags":["issue-tracking","patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.22","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-20T19:50:57.116Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73259","url":"https://www.cve.org/CVERecord?id=CVE-2026-73259","licence":"CVE Terms of Use","modified":"2026-08-20T19:51:19.095Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73259","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73259","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.684Z","epss":{"score":0.00244,"percentile":0.16731,"date":"2026-12-01T12:00:22.000Z"}}