Skip to content
XSS Advisory Advanced CVE-2024-40857

WebKit: Processing maliciously crafted web content may lead to universal cross site scripting (CVE-2024-40857)

A vulnerability in WebKit allowed maliciously crafted web content to cause universal cross-site scripting. An attacker could potentially execute scripts across sites, but the text does not specify the exact mechanism or impact beyond this.

Ron Masas Follow

Originally disclosed on Apple

Impact: Processing maliciously crafted web content may lead to universal cross site scripting

Description: This issue was addressed through improved state management.

Available for: iPhone XS and later, iPad Pro 13-inch, iPad Pro 12.9-inch 3rd generation and later, iPad Pro 11-inch 1st generation and later, iPad Air 3rd generation and later, iPad 7th generation and later, and iPad mini 5th generation and later

The original report as published on Apple's security release notes, by Ron Masas. Images and videos are our own copies; raw HTML is shown as text. View it on Apple's security release notes.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a state management flaw in WebKit that allowed scripts to escape their origin and affect other sites.

What the attacker needed

Victim visits malicious web content

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a security flaw in the WebKit browser engine, which powers Safari and other apps on Apple devices. It means that a malicious website could run harmful code in the context of other websites you visit, potentially stealing data or performing actions on your behalf. The issue was fixed by improving how the browser manages its internal state.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Ron Masas

View all

3 more disclosed reports, best first.

More from Apple

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.