mailparser vulnerable to Cross-site Scripting
Low severity
GitHub Reviewed
Published
Mar 3, 2026
to the GitHub Advisory Database
•
Updated Mar 4, 2026
Description
Published by the National Vulnerability Database
Mar 3, 2026
Published to the GitHub Advisory Database
Mar 3, 2026
Last updated
Mar 4, 2026
Reviewed
Mar 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