CVE-2025-3909

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

High · published May 14, 2025

CVSS v3.1
8.1
EPSS
0%
Percentile
39.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00470 · 39.7th percentile
Published
2025-05-14T16:56Z
EPSS history
Timeline
  • 14 MAY 16:56Z
    JavaScript Execution via Spoofed PDF Attachment and file:/// Link
    cvelistv5