CVE-2021-4140: Critical severity Mozilla Firefox vulnerability

Published Jan 11, 2022
·
Updated

It was possible to construct specific XSLT markup that would be able to bypass an iframe sandbox.

Affected Software

38 affected componentsFixes available
Mozilla Firefox<96.0
Mozilla Firefox ESR<91.5
Mozilla Thunderbird<91.5
Mozilla Firefox ESR<91.5
91.5
Mozilla Thunderbird<91.5
91.5
Mozilla Firefox<96
96
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox<97.0-r0
97.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/firefox-esr<91.5.0-r0
91.5.0-r0
alpine/librewolf<97.0-r0
97.0-r0
alpine/librewolf<97.0-r0
97.0-r0
alpine/librewolf<97.0-r0
97.0-r0
alpine/librewolf<97.0-r0
97.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
alpine/thunderbird<91.5.0-r0
91.5.0-r0
debian/firefox
159.0.1-1
debian/firefox-esr
140.12.0esr-1~deb12u1153.6.0esr-1~deb12u2140.15.0esr-1~deb13u1153.6.0esr-1~deb13u1153.5.1esr-1153.6.0esr-1
debian/thunderbird
1:140.12.0esr-1~deb12u11:153.6.0esr-1~deb12u21:140.12.0esr-1~deb13u11:153.6.0esr-1~deb13u11:153.5.0esr-11:153.6.0esr-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Thunderbird to a version that resolves this vulnerability.

    Fixed in 91.5
  2. Upgrade

    Upgrade Firefox to a version that resolves this vulnerability.

    Fixed in 96
  3. Upgrade

    Upgrade Firefox ESR to a version that resolves this vulnerability.

    Fixed in 91.5

Event History

Jan 11, 2022
CVE Published
12:00 AM
Data Sourced
via Mozilla·12:00 AM
DescriptionSeverityAffected Software
Dec 22, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID of this issue?

The vulnerability ID of this issue is CVE-2021-4140.

2

What is the severity of CVE-2021-4140?

The severity of CVE-2021-4140 is critical.

3

Which software versions are affected by CVE-2021-4140?

CVE-2021-4140 affects Firefox ESR versions before 91.5, Firefox versions before 96, and Thunderbird versions before 91.5.

4

How can an attacker exploit CVE-2021-4140?

An attacker can exploit CVE-2021-4140 by constructing specific XSLT markup to bypass an iframe sandbox.

5

Where can I find more information about CVE-2021-4140?

You can find more information about CVE-2021-4140 in the following references: [Mozilla Bugzilla](https://bugzilla.mozilla.org/show_bug.cgi?id=1746720), [Mozilla Security Advisory MFSA2022-03](https://www.mozilla.org/en-US/security/advisories/mfsa2022-03/), [Mozilla Security Advisory MFSA2022-01](https://www.mozilla.org/en-US/security/advisories/mfsa2022-01/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203