CVE-2021-38503
Critical · 10.0CVSS
10.0
EPSS
4.1%
Published
Dec 8, 2021
CISA due date
—
Cloudanix analysis
A flaw in web browsers allowed malicious web pages to escape security restrictions on embedded content, potentially letting attackers run harmful code or take over the browser window.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Incorrect application of iframe sandbox rules to XSLT stylesheets permits bypass of restrictions, enabling script execution and top-level frame navigation from within a sandboxed context.
Why it matters to the business
Browser users on unpatched versions face risk of full session compromise and arbitrary code execution in high-privilege contexts; widespread use of affected Mozilla products means broad exposure across enterprises and consumers, though the issue is several years old with no recorded ransomware campaigns.
How an attack unfolds
An attacker hosts a page containing a sandboxed iframe that references a malicious XSLT stylesheet; when rendered, the stylesheet bypasses sandbox controls to inject and execute scripts or redirect the top-level frame, potentially leading to further attacks such as credential theft or malware delivery. No named threat actors or active campaigns are associated with this issue.
How to fix it
Upgrade Mozilla Firefox to version 94 or later, Firefox ESR to 91.3 or later, and Thunderbird to 91.3 or later. Apply vendor updates as soon as possible; where immediate patching is not feasible, enforce content security policies and restrict untrusted XSLT processing.
How to confirm the fix worked
Confirm installed product versions meet or exceed the fixed releases listed in remediation guidance; review browser and mail client update logs for successful installation of the relevant security updates.
Typical attack path
- Victim visits attacker-controlled site containing malicious iframe
- Iframe loads XSLT stylesheet that triggers the sandbox bypass
- Script execution or top-frame navigation occurs outside sandbox constraints
- Attacker escalates to data exfiltration, phishing, or further payload delivery
How to detect it
Review web proxy, browser history, and application logs for visits to unexpected domains followed by anomalous script execution or frame navigation events; correlate with XSLT processing in sandboxed contexts where possible.
What your security team should do
- Prioritize patching of all Mozilla Firefox, ESR, and Thunderbird instances to the fixed versions
- Inventory affected systems using endpoint management tools and schedule phased rollout
- Monitor EPSS trend and re-evaluate if exploit maturity increases
- Educate users on avoiding suspicious links until patches are applied
The record
The iframe sandbox rules were not correctly applied to XSLT stylesheets, allowing an iframe to bypass restrictions such as executing scripts or navigating the top-level frame. This vulnerability affects Firefox < 94, Thunderbird < 91.3, and Firefox ESR < 91.3.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:8 | firefox | 0 | 91.3.0-1.el8_4.alma |
| AlmaLinux:8 | thunderbird | 0 | 91.3.0-2.el8_4.alma |
| AlmaLinux:8 | thunderbird | 0 | 91.3.0-2.el8_4.alma.plus |
| Debian:10 | thunderbird | 0 | 1:91.4.1-1~deb10u1 |
| Debian:11 | firefox-esr | 0 | 91.4.1esr-1~deb11u1 |
| Debian:11 | thunderbird | 0 | 1:91.4.1-1~deb11u1 |
| Debian:12 | firefox-esr | 0 | 91.3.0esr-1 |
| Debian:12 | thunderbird | 0 | 1:91.3.0-1 |
| Debian:13 | firefox-esr | 0 | 91.3.0esr-1 |
| Debian:13 | thunderbird | 0 | 1:91.3.0-1 |
| Debian:9 | firefox-esr | 0 | 91.4.1esr-1~deb9u1 |
| Debian:9 | thunderbird | 0 | 1:91.4.1-1~deb9u1 |
| Mageia:8 | firefox | 0 | 91.3.0-1.mga8 |
| Mageia:8 | firefox-l10n | 0 | 91.3.0-1.mga8 |
| Mageia:8 | nss | 0 | 3.72.0-1.mga8 |
| Mageia:8 | thunderbird | 0 | 91.3.0-1.mga8 |
| Mageia:8 | thunderbird-l10n | 0 | 91.3.0-1.mga8 |
| Red Hat:enterprise_linux:7::client | firefox | 0 | 0:91.3.0-1.el7_9 |
| Red Hat:enterprise_linux:7::client | firefox-debuginfo | 0 | 0:91.3.0-1.el7_9 |
| Red Hat:enterprise_linux:7::client | thunderbird | 0 | 0:91.3.0-2.el7_9 |
| Red Hat:enterprise_linux:7::client | thunderbird-debuginfo | 0 | 0:91.3.0-2.el7_9 |
| Red Hat:enterprise_linux:7::server | firefox | 0 | 0:91.3.0-1.el7_9 |
| Red Hat:enterprise_linux:7::server | firefox-debuginfo | 0 | 0:91.3.0-1.el7_9 |
| Red Hat:enterprise_linux:7::server | thunderbird | 0 | 0:91.3.0-2.el7_9 |
| Red Hat:enterprise_linux:7::server | thunderbird-debuginfo | 0 | 0:91.3.0-2.el7_9 |
| Red Hat:enterprise_linux:7::workstation | firefox | 0 | 0:91.3.0-1.el7_9 |
| Red Hat:enterprise_linux:7::workstation | firefox-debuginfo | 0 | 0:91.3.0-1.el7_9 |
| Red Hat:enterprise_linux:7::workstation | thunderbird | 0 | 0:91.3.0-2.el7_9 |
| Red Hat:enterprise_linux:7::workstation | thunderbird-debuginfo | 0 | 0:91.3.0-2.el7_9 |
| Red Hat:enterprise_linux:8::appstream | firefox | 0 | 0:91.3.0-1.el8_4 |
| Red Hat:enterprise_linux:8::appstream | firefox-debuginfo | 0 | 0:91.3.0-1.el8_4 |
| Red Hat:enterprise_linux:8::appstream | firefox-debugsource | 0 | 0:91.3.0-1.el8_4 |
| Red Hat:enterprise_linux:8::appstream | thunderbird | 0 | 0:91.3.0-2.el8_4 |
| Red Hat:enterprise_linux:8::appstream | thunderbird-debuginfo | 0 | 0:91.3.0-2.el8_4 |
| Red Hat:enterprise_linux:8::appstream | thunderbird-debugsource | 0 | 0:91.3.0-2.el8_4 |
| Red Hat:rhel_eus:8.1::appstream | firefox | 0 | 0:91.3.0-1.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | firefox-debuginfo | 0 | 0:91.3.0-1.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | firefox-debugsource | 0 | 0:91.3.0-1.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | thunderbird | 0 | 0:91.3.0-2.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | thunderbird-debuginfo | 0 | 0:91.3.0-2.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | thunderbird-debugsource | 0 | 0:91.3.0-2.el8_1 |
| Red Hat:rhel_eus:8.2::appstream | firefox | 0 | 0:91.3.0-1.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | firefox-debuginfo | 0 | 0:91.3.0-1.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | firefox-debugsource | 0 | 0:91.3.0-1.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | thunderbird | 0 | 0:91.3.0-2.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | thunderbird-debuginfo | 0 | 0:91.3.0-2.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | thunderbird-debugsource | 0 | 0:91.3.0-2.el8_2 |
| Rocky Linux:8 | firefox | 0 | 0:91.3.0-1.el8 |
| Rocky Linux:8 | thunderbird | 0 | 0:91.3.0-2.el8_4 |
| SUSE:Enterprise Storage 6 | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:HPE Helion OpenStack 8 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP2 | MozillaFirefox | 0 | 91.3.0-152.6.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | MozillaFirefox | 0 | 91.3.0-152.6.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server 12 SP3-LTSS | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server 12 SP5 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise Server 15-LTSS | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | MozillaFirefox | 0 | 91.3.0-150.6.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:Linux Enterprise Workstation Extension 15 SP2 | MozillaThunderbird | 0 | 91.4.0-8.45.2 |
| SUSE:Linux Enterprise Workstation Extension 15 SP3 | MozillaThunderbird | 0 | 91.4.0-8.45.2 |
| SUSE:OpenStack Cloud 8 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:OpenStack Cloud 9 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:OpenStack Cloud Crowbar 8 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| SUSE:OpenStack Cloud Crowbar 9 | MozillaFirefox | 0 | 91.3.0-112.80.2 |
| Ubuntu:18.04:LTS | firefox | 0 | 94.0+build3-0ubuntu0.18.04.1 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:18.04:LTS | thunderbird | 0 | 1:91.5.0+build1-0ubuntu0.18.04.1 |
| Ubuntu:20.04:LTS | firefox | 0 | 94.0+build3-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:20.04:LTS | thunderbird | 0 | 1:91.5.0+build1-0ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | firefox | 0 | 94.0+build3-0ubuntu1 |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:22.04:LTS | thunderbird | 0 | 1:91.3.1+build1-0ubuntu1 |
| Ubuntu:Pro:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | mozjs78 | 0 | No fix |
| openSUSE:Leap 15.2 | MozillaThunderbird | 0 | 91.4.0-lp152.2.52.1 |
| openSUSE:Leap 15.3 | MozillaFirefox | 0 | 91.3.0-152.6.1 |
| openSUSE:Leap 15.3 | MozillaThunderbird | 0 | 91.4.0-8.45.2 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 94.0.1-1.1 |
| openSUSE:Tumbleweed | MozillaThunderbird | 0 | 91.3.0-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2025-14331 Same-origin policy bypass in the Request Handling component. Also affects firefox
- CVE-2025-14325 JIT miscompilation in the JavaScript Engine: JIT component. Also affects firefox
- CVE-2025-14330 JIT miscompilation in the JavaScript Engine: JIT component. Also affects firefox
- CVE-2025-14333 Memory safety bugs present in Firefox ESR 140.5, Thunderbird ESR 140.5, Firefox 145 and… Also affects firefox
- CVE-2025-14328 Privilege escalation in the Netmonitor component. Also affects firefox
- CVE-2025-14329 Privilege escalation in the Netmonitor component. Also affects firefox
- CVE-2025-14323 Privilege escalation in the DOM: Notifications component. Also affects firefox
- CVE-2025-14321 Use-after-free in the WebRTC: Signaling component. Also affects firefox