Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. zbateson/mail-mime-parser
  4. ›
  5. CVE-2026-61816

CVE-2026-61816: zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME

September 24, 2026

An uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library.

Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first getAllParts() or content read.

References

  • github.com/advisories/GHSA-f6v3-2qmr-vfjx
  • github.com/zbateson/mail-mime-parser/commit/1691e695821f70461f9554e9bb71be2859404a24
  • github.com/zbateson/mail-mime-parser/commit/fa44823ba9dd651e0eecec7aa45ac8c8e6afcb78
  • github.com/zbateson/mail-mime-parser/releases/tag/3.0.7
  • github.com/zbateson/mail-mime-parser/releases/tag/4.0.2
  • github.com/zbateson/mail-mime-parser/security/advisories/GHSA-f6v3-2qmr-vfjx
  • nvd.nist.gov/vuln/detail/CVE-2026-61816

Code Behaviors & Features

Detect and mitigate CVE-2026-61816 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 3.0.6, all versions starting from 4.0.0 before 4.0.2

Fixed versions

  • 3.0.6
  • 4.0.2

Solution

Upgrade to versions 3.0.6, 4.0.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

packagist/zbateson/mail-mime-parser/CVE-2026-61816.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 25 Sep 2026 12:18:11 +0000.