Skip to main content
Mallory
HighExploited in the wildCISA KEVVulnerability

CVE-2021-1789: WebKit JavaScriptCore Type Confusion Leading to Arbitrary Code Execution

Published Apr 2, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS14.0%97th percentile
CISA KEVYesAdded May 4, 2022
In the wildActivePer CISA KEV
Vendors
Fedora ProjectAppleWebkitgtk
IdentifiersCVE-2021-1789CWE-843 · Access of Resource Using…

CVE-2021-1789 is a type confusion vulnerability in WebKit that permits arbitrary code execution when maliciously crafted web content is processed. Technical analysis attributes the flaw to JavaScriptCore property enumeration during for...in loops: a Proxy getPrototypeOf callback can mutate the base object's layout while enumeration metadata is being collected, without subsequent validation of the final structure-property count. The optimized property-access path then uses stale enumeration metadata and inline-capacity assumptions, producing an out-of-bounds read that can be developed into a use-after-free primitive. Successful exploitation was demonstrated on WebKitGTK 2.30.5 and equivalent WebKit versions. Apple addressed the vulnerability through improved state handling.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Processing attacker-controlled web content can execute arbitrary code in the vulnerable WebKit execution context. Exploitation has been associated with watering-hole attacks that achieved in-memory execution of native macOS code. In the DazzleSpy infection chain, a separate vulnerability, CVE-2021-30869, subsequently provided root privileges; root access and the backdoor's surveillance capabilities are not direct effects of CVE-2021-1789 alone. The identification of the campaign's initial WebKit vulnerability as CVE-2021-1789 remains uncertain in some analyses.

Mitigation

If you can’t patch tonight, do this now.

Until patching is complete, reduce exposure to untrusted web content in Safari and other affected WebKit-based applications, especially for high-risk users. Restrict browsing to trusted sites, disable or limit JavaScript where operationally feasible, and use platform/browser hardening and application control to reduce post-exploitation impact. Monitor for suspicious Safari/WebKit crashes and signs of exploit chaining with local privilege-escalation vulnerabilities. These are only partial mitigations and do not eliminate the underlying flaw.

Remediation

Patch, then assume compromise.

Install the applicable fixed release or a later supported release: macOS Big Sur 11.2, Security Update 2021-001 Catalina, Security Update 2021-001 Mojave, tvOS 14.4, watchOS 7.3, iOS 14.4, iPadOS 14.4, or Safari 14.0.3. The fix improves WebKit state handling. A fixed WebKitGTK release is not specified.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AppleIpadosoperating_system
AppleIphone Osoperating_system
AppleMac Os Xoperating_system
AppleMacosoperating_system
AppleTvosoperating_system
AppleWatchosoperating_system
Fedora ProjectFedoraoperating_system
WebkitgtkWebkitgtkapplication
FAQ

Frequently asked questions

Is CVE-2021-1789 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 4, 2022.
Is there a public exploit for CVE-2021-1789?
As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-1789.
Is there a patch for CVE-2021-1789?
Install the applicable fixed release or a later supported release: macOS Big Sur 11.2, Security Update 2021-001 Catalina, Security Update 2021-001 Mojave, tvOS 14.4, watchOS 7.3, iOS 14.4, iPadOS 14.4, or Safari 14.0.3. The fix improves WebKit state handling.
What products are affected by CVE-2021-1789?
Webkitgtk, Apple Ipados, Apple Iphone Os, Apple Macos, Apple Mac Os X, and 3 more.
How severe is CVE-2021-1789?
CVE-2021-1789 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 14.0% (97th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+2 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.