Intel

AIKIDO-2026-10127

mailparser is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

77

High Risk

This Affects:

JSmailparser
2.4.2 - 3.9.2
Fixed in 3.9.3

TL;DR

Affected versions of this package are vulnerable to cross-site scripting (XSS) when converting plain text to HTML, because URLs and link text were inserted into anchor tags without proper escaping. Specially crafted URLs containing quotes or HTML content could break out of the attribute context and inject malicious code. The patched version escapes URL attributes and encodes link text before rendering, preventing XSS attacks.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

mailparser is vulnerable to Cross-site Scripting (XSS) in versions 2.4.2 - 3.9.2.

How to fix this

Upgrade the mailparser library to the patch version.

Background Info