CVE-2024-40857 Cross-site scripting in Safari

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts in the context of the victim's browser by tricking them into visiting malicious web content.

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
None listed

What is CVE-2024-40857?

CVE-2024-40857 is a medium-severity cross-site scripting vulnerability in Apple Ipados, published on 16 Sep 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 through improved state management. This issue is fixed in Safari 18, iOS 18 and iPadOS 18, macOS Sequoia 15, tvOS 18, visionOS 2, watchOS 11. Processing maliciously crafted web content may lead to universal cross site scripting.

Weakness: CWE-79

Which versions are affected by CVE-2024-40857?

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-40857?

No fix has been published for CVE-2024-40857 yet. Limit exposure of the affected software until one is available.

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-40857 being exploited?

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

All Apple Ipados vulnerabilities

Sources

Also known as GHSA-8476-jpv4-xp4p.

Is CVE-2024-40857 in your software?

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

Check your SBOMs for free