CVE-2026-73258: Mongoose - Content-Type Bypass
- Cve: CVE-2026-73258
- Name: Mongoose - Content-Type Bypass
- Description: 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.
- Impact: Remote attackers can bypass content-type checks, potentially leading to acceptance of dangerous content.
- Remediation: Update to version 7.22 or later.
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Epss score: 0.00459
- Epss percentile: 0.40573
- Assignee: [email protected]
- Published at: 2026-08-20T18:16:47Z
- Age in days: 96
- Modified at: 2026-10-18T20:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-73258
- Nvd status: analyzed
- Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-697 | Incorrect Comparison |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/cesanta/mongoose/security/advisories/GHSA-cc55-8v3r-59p8 | nvd | 2026-08-20 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71 | Patch |
| https://github.com/cesanta/mongoose/pull/3611 | Issue Tracking, Patch |
| https://github.com/cesanta/mongoose/security/advisories/GHSA-cc55-8v3r-59p8 | Exploit, Vendor Advisory |
| https://github.com/cesanta/mongoose/releases/tag/7.22 | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cesanta:mongoose | < 7.22 | no | nvd | /v1/products/cesanta/mongoose |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cesanta/mongoose | commit, fix, pull, releases, security_advisory | yes | /v1/repositories/cesanta/mongoose |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-08-20
- Remote: yes
- Exposed hosts: 22889
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports