# CVE-2026-3455: mailparser vulnerable to Cross-site Scripting

- Severity: Medium 5.1 (CVSS:4.0, scored by snyk) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-03T05:00:11.753Z
- Modified: 2026-06-17T10:43:36.783Z
- Also known as: GHSA-7gmj-h9xc-mcxc
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- mailparser: before 3.9.3
- mailparser (npm): before 3.9.3
- nodemailer mailparser: before 3.9.3

## Every score

- snyk: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P`
- snyk: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 6.1 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P`

## References

- <https://gist.github.com/hayageek/7fcb225e3b1ea9a341d560403fbb585a> (exploit, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JS-MAILPARSER-15204032> (third-party-advisory, web)
- <https://github.com/nodemailer/mailparser/commit/921a67df4cfb38f0b411037d7b26fbd4d5411b08> (patch, web)
- <https://github.com/nodemailer/mailparser/issues/412> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-3455> (advisory)
- <https://github.com/nodemailer/mailparser> (package)

## Sources

- CVE List: [CVE-2026-3455](https://www.cve.org/CVERecord?id=CVE-2026-3455), CVE Terms of Use, modified 2026-03-03
- GitHub Advisory Database: [GHSA-7gmj-h9xc-mcxc](https://github.com/advisories/GHSA-7gmj-h9xc-mcxc), CC-BY-4.0, modified 2026-03-04
- NVD: [CVE-2026-3455](https://nvd.nist.gov/vuln/detail/CVE-2026-3455), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-3455 · Whole record: https://cve.day/CVE-2026-3455.json · Rebuilt by cve.day 2026-11-25T22:59:15.120Z
