WebKit: Visiting a maliciously crafted website may lead to a cross-site scripting attack (CVE-2026-28871)
A logic flaw in WebKit could let a maliciously crafted website trigger a cross-site scripting attack. An attacker who gets a victim to visit such a page may be able to run script in the context of another site.
Originally disclosed on Apple
Impact: Visiting a maliciously crafted website may lead to a cross-site scripting attack
Description: A logic issue was addressed with improved checks.
Available for: iPhone 11 and later, iPad Pro 12.9-inch 3rd generation and later, iPad Pro 11-inch 1st generation and later, iPad Air 3rd generation and later, iPad 8th generation and later, and iPad mini 5th generation and later
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 logic error in WebKit's handling of page or origin checks that let script cross a site boundary.
What the attacker needed
Victim visits a malicious website; affected iPhone or iPad model
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.
WebKit is the browser engine used by Safari on Apple devices. A cross-site scripting attack means a page can sneak its own code into another website that the browser trusts, so that code runs as if the trusted site wrote it. Here the browser's internal logic made a wrong decision, and the advisory says visiting a bad page could allow that.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.