Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-3455 EUVD-2026-9279GHSA-7gmj-h9xc-mcxc

mailparser vulnerable to Cross-site Scripting

Published Mar 3, 2026 · Updated Mar 3, 2026 · Assigned by snyk

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

VendorProductAffectedFixed
— mailparser < 3.9.3 3.9.3

Affected packages

EcosystemPackageAffectedFixedRecord
npm mailparser < 3.9.3 3.9.3 GHSA-7gmj-h9xc-mcxc

Advisories 1

References