Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mailparser
  4. ›
  5. CVE-2026-3455

CVE-2026-3455: mailparser vulnerable to Cross-site Scripting

March 3, 2026 (updated March 4, 2026)

Versions of the package mailparser before 3.9.3 are vulnerable to Cross-site Scripting (XSS) via the textToHtml() function due to the improper sanitisation of URLs in the email content. An attacker can execute arbitrary scripts in victim browsers by adding extra quote " to the URL with embedded malicious JavaScript code.

References

  • gist.github.com/hayageek/7fcb225e3b1ea9a341d560403fbb585a
  • github.com/advisories/GHSA-7gmj-h9xc-mcxc
  • github.com/nodemailer/mailparser
  • github.com/nodemailer/mailparser/commit/921a67df4cfb38f0b411037d7b26fbd4d5411b08
  • github.com/nodemailer/mailparser/issues/412
  • nvd.nist.gov/vuln/detail/CVE-2026-3455
  • security.snyk.io/vuln/SNYK-JS-MAILPARSER-15204032

Code Behaviors & Features

Detect and mitigate CVE-2026-3455 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 before 3.9.3

Fixed versions

  • 3.9.3

Solution

Upgrade to version 3.9.3 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/mailparser/CVE-2026-3455.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Fri, 06 Mar 2026 00:18:12 +0000.