Impact
Mongoose, an embedded web server, stored a cross‑site scripting flaw in directory listings. File names that contained arbitrary HTML were inserted unescaped into the body of the directory page. A browser visiting that page would interpret the injected markup within the Mongoose origin, allowing the attacker to steal session cookies or perform privileged actions as the user. The weakness is a classic reflected input problem (CWE‑79).
Affected Systems
Cesanta’s Mongoose web server in versions before 7.22. Any deployments that enable directory listing (MG_ENABLE_DIRLIST) are vulnerable, regardless of other access controls. Upgrade to 7.22 or later to eliminate the bug.
Risk and Exploitability
The CVSS score is 5.4, indicating medium severity. An attacker must be able to create a file on the filesystem served by Mongoose and reach a user who views the directory list; this is feasible in shared hosting or misconfigured sites. EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog, meaning there is no immediate evidence of widespread exploitation. Given these constraints, the risk remains moderate while the potential impact can be significant due to XSS.
OpenCVE Enrichment