CVE-2024-40785 Cross-site scripting in Safari

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts in the victim's browser context by tricking them into visiting a malicious website using 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-2024-40785?

CVE-2024-40785 is a medium-severity cross-site scripting vulnerability in Apple Ipados, published on 29 Jul 2024. 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

This issue was addressed with improved checks. This issue is fixed in Safari 17.6, iOS 16.7.9 and iPadOS 16.7.9, iOS 17.6 and iPadOS 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, watchOS 10.6. Processing maliciously crafted web content may lead to a cross site scripting attack.

Weakness: CWE-79

Which versions are affected by CVE-2024-40785?

It affects 7 products.

Products include Apple Ipados, Apple Iphone Os, Apple Macos, Apple Safari, Apple Tvos, Apple Visionos and 1 more.

How do I fix CVE-2024-40785?

Upgrade to a fixed version.

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-2024-40785 being exploited?

There is no known exploitation of CVE-2024-40785 in the wild and no public exploit code.

All Apple Ipados vulnerabilities

Sources

Also known as DEBIAN-CVE-2024-40785, GHSA-6hq7-9r57-p64g, UBUNTU-CVE-2024-40785.

Is CVE-2024-40785 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free