CVE-2021-4140
A public proof of concept exists; no exploitation attested.
- Published2022-12-22
- Fixed in96.0
- WeaknessCWE-91
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
It was possible to construct specific XSLT markup that would be able to bypass an iframe sandbox. This vulnerability affects Firefox ESR < 91.5, Firefox < 96, and Thunderbird < 91.5.
Timeline
dates in UTC- 2022-12-2220:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 96.0 | < 96.0 | 96.0 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 91.5 | < 91.5 | 91.5 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 91.5 | < 91.5 | 91.5 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA3 products
As mozilla, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Mozilla Firefox ESRAffected
- < 91.5fixed in 91.5custom
- Mozilla FirefoxAffected
- < 96fixed in 96custom
- Mozilla ThunderbirdAffected
- < 91.5fixed in 91.5custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-12-22
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- civetwebopenSUSE:Leap 15.3all versions · fixed in 1.15-lp153.2.3.1
- firefoxUbuntu:22.04:LTSall versions · fixed in 96.0+build2-0ubuntu1
- firefoxUbuntu:20.04:LTSall versions · fixed in 96.0+build2-0ubuntu0.20.04.1
- firefoxUbuntu:18.04:LTSall versions · fixed in 96.0+build2-0ubuntu0.18.04.1
- firefoxRocky Linux:8all versions · fixed in 0:91.5.0-1.el8_5and 1 other package
- firefoxRed Hat:rhel_eus:8.4::appstreamall versions · fixed in 0:91.5.0-1.el8_4and 5 other packages
- firefoxRed Hat:rhel_eus:8.2::appstreamall versions · fixed in 0:91.5.0-1.el8_2and 5 other packages
- firefoxRed Hat:rhel_e4s:8.1::appstreamall versions · fixed in 0:91.5.0-1.el8_1and 5 other packages
91 more package ranges on OSV.dev
Vendor advisories
Mozilla: Iframe sandbox bypass with XSLT
firefox as a component of Red Hat Enterprise Linux 6 · firefox.src as a component of Red Hat Enterprise Linux 6 · thunderbird as a component of Red Hat Enterprise Linux 6 · +1 more
Red Hat Security Advisory: thunderbird security update
Red Hat Security Advisory: firefox security update
Red Hat Security Advisory: thunderbird security update
Red Hat Security Advisory: thunderbird security update
Red Hat Security Advisory: firefox security update
5 more advisories
Fix
- Update Mozilla firefox to 96.0
- Vendor fix Red Hat Product Security RHSA-2022:0127 · 11 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 All running instances of Thunderbird must be restarted for the update to take effect.
- Vendor fix Red Hat Product Security RHSA-2022:0124 · 18 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing the update, Firefox must be restarted for the changes to take effect.
Advisories and patches
- bugzilla.mozilla.orgPatch · Vendor Advisory
- www.mozilla.orgVendor Advisory
- www.mozilla.orgVendor Advisory
- www.mozilla.orgVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-04-16
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-04-16
- CISA-ADPCVSS 3.19.82025-04-16
- NVDCVSS 3.110read 2026-10-23
- CISA-ADPweakness (CWE)CWE-912025-04-16
- NVDweakness (CWE)CWE-91read 2026-10-23
- FIRST EPSSEPSS score1.4 %2026-11-18
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2021-34009same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-h5mr-xp97-c4p5same flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2022:0129advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:0130advisory covering several CVEsAlmaLinux · MIT
- DLA-2880-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-2881-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5044-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5045-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2022-0013advisory covering several CVEsMageia · LicenseRef-unstated
- MGASA-2022-0019advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1673advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1674advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2022:0136-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2022:0199-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11732-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11733-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14572-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:0123advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0124advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0125advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0126advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0127advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0128advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0129advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0130advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0131advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0132advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:0129advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:0130advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:0115-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0136-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0137-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0199-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:14880-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5229-1advisory covering several CVEsUbuntu
- USN-5248-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Published
- 2022-12-22
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-h5mr-xp97-c4p5
Frequently asked questions
What is CVE-2021-4140?
Is CVE-2021-4140 actively exploited?
What is the CVSS score for CVE-2021-4140?
Running Mozilla? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-h5mr-xp97-c4p5
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0