CVE-2024-40857: Apple Safari · Processing maliciously crafted web content may lead to universal cross site scripting
Affects Apple SafariSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Sep 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Apple Safari | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2024-40857, organizations and users should immediately update Safari to version 18 or later and ensure all Apple devices are running the latest OS versions: iOS 18, iPadOS 18, macOS Sequoia 15, tvOS 18, visionOS 2, and watchOS 11. Beyond patching, organizations should implement strict web content filtering and URL reputation services to block access to known malicious sites. Employing browser security features such as Content Security Policy (CSP) can help limit the impact of XSS attacks by restricting script execution sources. User education on phishing and suspicious links is critical since exploitation requires user interaction. Network-level protections like DNS filtering and intrusion detection systems tuned for web-based attacks can provide additional defense layers. For enterprise environments, consider deploying endpoint protection solutions that monitor browser behavior for anomalies. Regularly audit and monitor logs for unusual web activity or script execution patterns. Finally, encourage users to use multi-factor authentication on sensitive web services to reduce the impact of session hijacking attempts.
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.
References
- support.apple.com/en-us/121238 (opens in a new tab)
- support.apple.com/en-us/121240 (opens in a new tab)
- support.apple.com/en-us/121241 (opens in a new tab)
- support.apple.com/en-us/121248 (opens in a new tab)
- support.apple.com/en-us/121249 (opens in a new tab)
- support.apple.com/en-us/121250 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Sep/37 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Sep/36 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Sep/33 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Sep/32 (opens in a new tab)