cesanta.mongoose is vulnerable to Incorrect Comparison
65
Medium Risk
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.
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().
cesanta.mongoose is vulnerable to Incorrect Comparison in versions 7.3.0 - 7.21.0.
Upgrade the cesanta.mongoose library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant