Insufficient Comparison Affecting mongoose package, versions <7.22+ds-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.27% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-MONGOOSE-19186432
  • published22 Aug 2026
  • disclosed20 Aug 2026

Introduced: 20 Aug 2026

NewCVE-2026-73258  (opens in a new tab)
CWE-697  (opens in a new tab)

How to fix?

Upgrade Debian:unstable mongoose to version 7.22+ds-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mongoose package and not the mongoose package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

Mongoose is an embedded web server and network library. Prior to 7.22, a remote attacker can place a lone carriage return or line feed in multipart input processed by mg_http_next_multipart() in src/http.c. The loops comparing s[b] and s[b + 1], and s[h2] and s[h2 + 1], use an incorrect AND condition and stop when either character resembles part of a CRLF terminator. This truncates headers, filenames, or boundaries and can cause an application to accept dangerous content after seeing a misleading Content-Type value. This issue is fixed in version 7.22.