Vulnerabilities/

mailparser vulnerable to Cross-site Scripting

Severity:
Low

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.

Recommendation

Update the mailparser package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
mailparser
Anything's wrong? Let us know Last updated on March 04, 2026