Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. postal-mime
  4. ›
  5. GHSA-f2hq-32vh-53cc

GHSA-f2hq-32vh-53cc: postal-mime: Quadratic CPU consumption when decoding a header of many joinable RFC 2047 base64 encoded words

October 23, 2026

Decoding a header that holds a long run of joinable RFC 2047 base64 encoded words, such as =?utf-8?B?QUJD?= repeated tens of thousands of times in a Subject, From, To, a filename or a description, took time quadratic in the number of words. The join check ran a regex over the text joined so far for every word, which flattens the accumulated string each time. A single well formed message of about 1.6 MB blocked the event loop for one to twenty seconds depending on the host, and inline message/rfc822 parts multiplied the cost, since each nested message carried its own header budget.

Any application that parses untrusted mail with postal-mime 3.0.0 through 4.0.7, including the exported decodeWords() helper, is affected. There is no confidentiality or integrity impact.

References

  • github.com/advisories/GHSA-f2hq-32vh-53cc
  • github.com/postalsys/postal-mime/commit/9eb25a66bb3cc8b631421be651b9648796f19136
  • github.com/postalsys/postal-mime/releases/tag/v4.0.8
  • github.com/postalsys/postal-mime/security/advisories/GHSA-f2hq-32vh-53cc

Code Behaviors & Features

Detect and mitigate GHSA-f2hq-32vh-53cc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 4.0.8

Fixed versions

  • 4.0.8

Solution

Upgrade to version 4.0.8 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
  • CWE-407: Inefficient Algorithmic Complexity

Source file

npm/postal-mime/GHSA-f2hq-32vh-53cc.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:25 +0000.