Path traversal in Mongoose - #VU167581
Published: November 18, 2026
Vulnerability details
The vulnerability allows a remote user to read arbitrary files accessible to the Mongoose process outside the webroot.
The vulnerability exists due to path traversal in the mg_ssi() function in mongoose.c when processing SSI include paths without validation on servers built with MG_ENABLE_SSI=1. A remote user can place a .shtml file containing <!--#include file="../../../etc/passwd"--> in the webroot and request it to disclose file contents in the response.