Intel

AIKIDO-2026-16669

cesanta.mongoose is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)CVE-2026-73254 Published Aug 13, 2026

54

Medium Risk

This Affects:

C++cesanta.mongoose
7.0 - 7.21
Fixed in 7.22
Are you affected? Scan for Free

TL;DR

When directory listing is enabled, filenames are placed into the listing link text without HTML-entity encoding while only the link target is URL-encoded. A file whose name contains markup causes that markup to execute when any user views the listing. This stored cross-site scripting runs in the origin of the Mongoose server. The fix HTML-escapes filenames before rendering them.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you serve directory listings with MG_ENABLE_DIRLIST enabled and untrusted input can create filenames in the served directory.

Background info

cesanta.mongoose is vulnerable to Cross-Site Scripting (XSS) in versions 7.0 - 7.21.

How to fix this

Upgrade the cesanta.mongoose library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform