Stored Cross-Site Scripting Vulnerability in Mongoose Web Server
CVE-2026-73254
5.4MEDIUM
What is CVE-2026-73254?
Mongoose, an embedded web server, is vulnerable to a stored cross-site scripting flaw. An attacker could exploit this vulnerability by crafting a file with an HTML payload name, which triggers XSS when users access a directory enabled with MG_ENABLE_DIRLIST. The vulnerability arises from the printdirentry() function invoked by listdir(), which URL-encodes the href but includes the raw filesystem filename in the HTML link text. This flaw could allow malicious script execution in the context of the Mongoose server, leading to potential exposure of user session data and unauthorized actions.
Affected Version(s)
mongoose < 7.22
