CVE Catalog

GHSA-4ffr-jq9g-5ffx

Medium
Published: —Translated: NVD NIST

Summary

Nodemailer's SMTP client applies four regular expressions to a peer's EHLO response to detect supported SASL mechanisms. Each pattern uses overlapping whitespace-matching sub-patterns, producing quadratic (O(n^2)) backtracking on long mechanism names.

Risk Assessment

A malicious or misconfigured SMTP server could send a long EHLO response, causing high CPU usage and delays (ReDoS). This may disrupt the application's email sending.

Recommendation

Update Nodemailer to a version containing the fix. Consider limiting EHLO response length or isolating the mail-sending process.

Other vulnerabilities in Nodemailer

See all
Original NVD description (English source)

## Summary Nodemailer's SMTP client applies four regular expressions to a peer's EHLO response to detect the supported SASL mechanisms. Each pattern uses an alternation with two overlapping whitespace-matching sub-patterns, which produces quadratic (O(n^2)) backtracking whenever the mechanism name

Vulnerability data from NVD (NIST) · CISA KEV · EPSS