{"id":"CVE-2026-73254","aliases":["CVE-2026-73254"],"related":[],"kind":"vulnerability","state":"published","title":"Mongoose: Stored XSS via unescaped filenames in directory listing","summary":"Mongoose is an embedded web server and network library. Prior to 7.22, an attacker who can create a file with an HTML payload in its name can trigger stored cross-site scripting when a user browses a directory served with MG_ENABLE_DIRLIST. The printdirentry() path called by listdir() in src/http.c URL-encodes the href but inserts the raw filesystem filename into the HTML link text. The browser executes the injected markup in the Mongoose origin, which can expose session data or permit 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, an attacker who can create a file with an HTML payload in its name can trigger stored cross-site scripting when a user browses a directory served with MG_ENABLE_DIRLIST. The printdirentry() path called by listdir() in src/http.c URL-encodes the href but inserts the raw filesystem filename into the HTML link text. The browser executes the injected markup in the Mongoose origin, which can expose session data or permit 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 que puede crear un archivo con una carga útil HTML en su nombre puede desencadenar cross-site scripting almacenado cuando un usuario navega por un directorio servido con MG_ENABLE_DIRLIST. La ruta printdirentry() llamada por listdir() en src/http.c codifica URL el href pero inserta el nombre de archivo sin procesar del sistema de archivos en el texto del enlace HTML. El navegador ejecuta el marcado inyectado en el origen de Mongoose, lo que puede exponer datos de sesión o permitir acciones como la víctima. Este problema está solucionado en la versión 7.22.","source":"nvd"}],"published":"2026-08-20T17:37:17.245Z","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-5g6j-m3pv-4f7g","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-21T16:21:52.468Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73254","url":"https://www.cve.org/CVERecord?id=CVE-2026-73254","licence":"CVE Terms of Use","modified":"2026-08-21T16:22:13.424Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73254","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73254","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.682Z","epss":{"score":0.00344,"percentile":0.20323,"date":"2026-11-30T12:00:22.000Z"}}