CVE-2022-22589 Cross-site scripting in iOS and iPadOS
Attackers can execute arbitrary JavaScript by sending a maliciously crafted mail message to users of Apple operating systems and Safari.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-22589?
CVE-2022-22589 is a medium-severity cross-site scripting vulnerability in Apple Ipados, published on 18 Mar 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A validation issue was addressed with improved input sanitization. This issue is fixed in iOS 15.3 and iPadOS 15.3, watchOS 8.4, tvOS 15.3, Safari 15.3, macOS Monterey 12.2. Processing a maliciously crafted mail message may lead to running arbitrary javascript.
Which versions are affected by CVE-2022-22589?
It affects 7 products.
Products include Apple Ipados, Apple Iphone Os, Apple Mac Os X, Apple Macos, Apple Safari, Apple Tvos and 1 more.
How do I fix CVE-2022-22589?
Apply the vendor's patch.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-22589 being exploited?
There is no known exploitation of CVE-2022-22589 in the wild and no public exploit code.
Other vulnerabilities in Apple Ipados
- CVE-2025-43300 Apple iOS, iPadOS, and macOS Out-of-Bounds Write
- CVE-2025-24201 Apple Multiple Products WebKit Out-of-Bounds Write
- CVE-2025-24085 Apple Multiple Products Use-After-Free
- CVE-2025-31200 Apple Multiple Products Memory Corruption
- CVE-2025-31201 Apple Multiple Products Arbitrary Read and Write
Sources
Also known as DEBIAN-CVE-2022-22589, GHSA-4c33-fwgf-qv6r, UBUNTU-CVE-2022-22589.