Home

Description

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.

PUBLISHED Reserved 2026-03-02 | Published 2026-03-03 | Updated 2026-03-03 | Assigner snyk




MEDIUM: 5.1CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P
MEDIUM: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P

Problem types

Cross-site Scripting (XSS)

Credits

Ravishanker Kusuma

References

security.snyk.io/vuln/SNYK-JS-MAILPARSER-15204032

github.com/...ommit/921a67df4cfb38f0b411037d7b26fbd4d5411b08

gist.github.com/hayageek/7fcb225e3b1ea9a341d560403fbb585a

github.com/nodemailer/mailparser/issues/412

cve.org (CVE-2026-3455)

nvd.nist.gov (CVE-2026-3455)

Download JSON