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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | mailparser | < 3.9.3 | 3.9.3 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | mailparser | < 3.9.3 | 3.9.3 | GHSA-7gmj-h9xc-mcxc |
Advisories 1
- WID-SEC-2026-0710 IBM App Connect Enterprise: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Mar 12, 2026