CVE-2026-73259: Mongoose: Reflected XSS via decoded URI in directory listing render

Published Aug 20, 2026
·
Updated

Mongoose is an embedded web server and network library. Prior to 7.22, a remote attacker can send a crafted percent-encoded request path to a deployment using MGENABLEDIRLIST and persuade a user to visit it. The mghttpservedir() and listdir() path in src/http.c places the decoded request URI into the title and h1 elements without HTML entity encoding. The resulting reflected cross-site scripting executes in the Mongoose origin and can expose session data or perform actions as the victim. This issue is fixed in version 7.22.

Affected Software

1 affected component
Mongoose<7.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mongoose to a version that resolves this vulnerability.

    Fixed in 7.22

Event History

Aug 20, 2026
CVE Published
via MITRE·05:39 PM
Data Sourced
via MITRE·05:39 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Mongoose deployments that use directory listings with MG_ENABLE_DIRLIST enabled are affected if they run a version before 7.22. The vulnerable behavior is in the directory-serving path used by mg_http_serve_dir() and listdir().

2

What is required to exploit this issue?

An attacker can remotely submit a crafted percent-encoded request path, but a user must then be persuaded to visit the resulting page. No attacker authentication is required.

3

What is the available fix?

Upgrade Mongoose to version 7.22, which fixes the issue. The fix addresses unencoded decoded request URI content rendered in directory listing title and h1 elements.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203