Intel

AIKIDO-2026-153851

cesanta.mongoose is vulnerable to Incorrect Comparison

Incorrect ComparisonCVE-2026-73258 Published Aug 13, 2026

65

Medium Risk

This Affects:

C++cesanta.mongoose
7.3.0 - 7.21.0
Fixed in 7.22.0
Are you affected? Scan for Free

TL;DR

The multipart form-data parser scans for line terminators with an incorrect boolean condition that stops on a lone carriage return or newline instead of the full sequence. This truncates header values, corrupts filenames, and splits header lines at stray control characters. An attacker can craft a Content-Type header that a security filter reads differently from the actual body, bypassing upload type restrictions. The fix requires both terminator characters together before ending a scan.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application processes multipart form uploads with mg_http_next_multipart().

Background info

cesanta.mongoose is vulnerable to Incorrect Comparison in versions 7.3.0 - 7.21.0.

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