JavaScript execution via null-byte JAR entry mismatch
Published Mar 4, 2025 · Updated Apr 13, 2026
Null-byte handling in Firefox and Thunderbird allows attackers to execute disguised JavaScript through a crafted jar: URL. nsJARChannel::LookupFile percent-decodes the archive entry, but nsZipArchive::GetItem used strlen on a character pointer and truncated lookup at an embedded NUL while MIME detection retained the later suffix. Exploitation requires a crafted WebExtension or other JAR resource; the lookup mismatch lets code hidden in image metadata run as JavaScript.
Summary
What happened
Null-byte handling in Firefox and Thunderbird allows attackers to execute disguised JavaScript through a crafted jar: URL. nsJARChannel::LookupFile percent-decodes the archive entry, but nsZipArchive::GetItem used strlen on a character pointer and truncated lookup at an embedded NUL while MIME detection retained the later suffix. Exploitation requires a crafted WebExtension or other JAR resource; the lookup mismatch lets code hidden in image metadata run as JavaScript.
The record
- CVE
- CVE-2025-1936
- Published
- Mar 4, 2025
- Updated
- Apr 13, 2026
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-158, T1036, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 4, 2025CVE publishedPublication date reported by the CVE source.
- Apr 13, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Mozilla Bugzilla embedded-null JAR reproductionproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo