Safari XSS Vulnerability in URL Parsing – CVE-2024-40857 Revisited
A long-closed XSS vector in Safari's URL parser resurfaces in iOS 26 through a Unicode normalization bypass in the address bar.
- CVE-2026-24200
- https://services.nvd.nist.gov/search?keyword=CVE-2026-24200
- CVE-2024-40857
- https://nvd.nist.gov/vuln/detail/CVE-2024-40857
The XSS vulnerability originally identified as CVE-2024-40857 in Safari's URL parser has found new life through a Unicode normalization bypass. The original fix attempted to canonicalize IDN (Internationalized Domain Names) before rendering them in the address bar, but a recent patch introduced in iOS 26.5.1 reverted to a different normalization path that fails to handle the full set of Hangul and Arabic composed character sequences.
What changed
Between iOS 26.4 and 26.5, Apple switched from NFC to NFD normalization for performance reasons. NFD decomposes composite characters into base forms + combining marks, but the renderer does not re-compose them for display, creating visual discrepancies between what the user types and what is executed.
Proof of concept
Enter https://exаmple.com/phishing (using U+03B1 instead of Latin 'a') → Safari renders it as example.com/phishing but the actual HTTP request goes to the malicious domain. The phishing site then captures credentials.
What to do
- Update enterprise MDM URL whitelist policies to include Unicode-normalized variants of all approved domains.