WebKit: Opening a maliciously crafted webarchive file may lead to universal cross-site scripting (CVE-2026-86898)
A logic flaw in WebKit's handling of webarchive files could allow a maliciously crafted archive to trigger universal cross-site scripting. An attacker could exploit this by getting a victim to open such a file, potentially executing scripts across sites.
Originally disclosed on Apple
Impact: Opening a maliciously crafted webarchive file may lead to universal cross-site scripting
Description: A logic issue was addressed with improved state management.
Available for: iPhone 11 and later, iPad Pro 12.9-inch 4th generation and later, iPad Pro 11-inch 2nd generation and later, iPad Air 4th generation and later, iPad 9th generation and later, and iPad mini 6th 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 state management when loading webarchive content, allowing scripts to escape their intended origin.
What the attacker needed
Victim opens a malicious webarchive file
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.
A webarchive file is a saved copy of a web page that can include scripts. Because of a mistake in how the browser handles these files, a bad file could let an attacker run their own code in the context of other websites you visit. This is called cross-site scripting, and it can be used to steal data or act as you on those sites.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.