CVE-2024-40785: Apple Safari · Processing maliciously crafted web content may lead to a cross site scripting attack
Affects Apple SafariSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium · fixed in 17.6 : update Apple Safari when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 17.6
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 29 Jul 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-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Apple Safari | Affected
| Fixed in– |
AI-suggested
Organizations and users should immediately apply the security updates released by Apple, including Safari 17.6 and the corresponding OS patches for iOS, iPadOS, macOS Sonoma, tvOS, visionOS, and watchOS. Beyond patching, organizations should implement browser security best practices such as enabling content security policies (CSP) where possible to restrict script execution origins. User education is vital to reduce the risk of social engineering attacks that could lead to exploitation, emphasizing caution when clicking unknown or suspicious links. Network-level protections like web filtering and intrusion prevention systems can help block access to known malicious sites. Monitoring browser logs and network traffic for unusual activity may help detect attempted exploitation. For high-security environments, consider restricting Safari usage or deploying endpoint protection solutions that can detect script injection attempts. Regular vulnerability scanning and penetration testing should include checks for XSS vulnerabilities in client environments. Finally, maintain an incident response plan that includes browser-based attack scenarios.
Description
This issue was addressed with improved checks. This issue is fixed in Safari 17.6, iOS 16.7.9 and iPadOS 16.7.9, iOS 17.6 and iPadOS 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, watchOS 10.6. Processing maliciously crafted web content may lead to a cross site scripting attack.
References
- support.apple.com/en-us/120908 (opens in a new tab)
- support.apple.com/en-us/120909 (opens in a new tab)
- support.apple.com/en-us/120911 (opens in a new tab)
- support.apple.com/en-us/120913 (opens in a new tab)
- support.apple.com/en-us/120914 (opens in a new tab)
- support.apple.com/en-us/120915 (opens in a new tab)
- support.apple.com/en-us/120916 (opens in a new tab)
- support.apple.com/en-us/HT214121 (opens in a new tab)
- support.apple.com/en-us/HT214117 (opens in a new tab)
- support.apple.com/en-us/HT214116 (opens in a new tab)
- support.apple.com/en-us/HT214124 (opens in a new tab)
- support.apple.com/en-us/HT214119 (opens in a new tab)
- support.apple.com/en-us/HT214123 (opens in a new tab)
- support.apple.com/en-us/HT214122 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Jul/16 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Jul/15 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Jul/23 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Jul/21 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Jul/17 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Jul/22 (opens in a new tab)
- seclists.org/fulldisclosure/2024/Jul/18 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/09/msg00006.html (opens in a new tab)
- support.apple.com/kb/HT214124 (opens in a new tab)
- support.apple.com/kb/HT214122 (opens in a new tab)
- support.apple.com/kb/HT214119 (opens in a new tab)
- support.apple.com/kb/HT214117 (opens in a new tab)
- support.apple.com/kb/HT214116 (opens in a new tab)