CVE-2025-3909

JavaScript Execution via Spoofed PDF Attachment and file:/// Link

State
Published
Severity
8.1 High
Published
May 14, 2025
Updated
Apr 13, 2026
Reserved
Apr 23, 2025

Read the record on cve.org

Description

Thunderbird's handling of the X-Mozilla-External-Attachment-URL header can be exploited to execute JavaScript in the file:/// context. By crafting a nested email attachment (message/rfc822) and setting its content type to application/pdf, Thunderbird may incorrectly render it as HTML when opened, allowing the embedded JavaScript to run without requiring a file download. This behavior relies on Thunderbird auto-saving the attachment to /tmp and linking to it via the file:/// protocol, potentially enabling JavaScript execution as part of the HTML. This vulnerability was fixed in Thunderbird 128.10.1 and Thunderbird 138.0.1.

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NCISA-ADP

Weaknesses

  • CWE-356 Product UI does not Warn User of Unsafe Actions

Affected Products

ProductVersions
ThunderbirdMozilla
  • 128.10.1 through 128.*Not affected
  • 138.0.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.