CVE-2024-40785
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThis 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA cross-site scripting (XSS) vulnerability in WebKit allows attackers to execute malicious JavaScript via crafted web content processed by Safari or web views in Apple operating systems.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 17.6< 16.7.9>= 17.0, < 17.6< 16.7.9>= 17.0, < 17.6< 10.6< 17.6< 1.3< 14.6CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify your Apple product and platformDetermine whether you use Safari, iOS, iPadOS, macOS, watchOS, tvOS, or visionOS. This vulnerability affects WebKit-based browsers and web views across all these Apple platforms.Affected if Using any WebKit-based browser or app on Apple platforms
-
Check Safari version on macOS or iOSOn macOS Safari: Open Safari, go to Safari > About Safari to view the version number. On iOS/iPadOS: Go to Settings > General > About to view the iOS version.Affected if Safari version is below 17.6 on any macOS version below 14.6
-
Check iOS or iPadOS versionGo to Settings > General > About on the device and note the iOS/iPadOS version number.Affected if iOS/iPadOS version is 16.7.9 or below, or falls between 17.0 and 17.6 (exclusive)
-
Check macOS versionClick the Apple menu > About This Mac to view the macOS version.Affected if macOS version is below 14.6 (Sonoma)
-
Check watchOS, tvOS, or visionOS versionOn Apple Watch: Open the Settings app > General > About. On Apple TV: Go to Settings > General > About. On Apple Vision Pro: Go to Settings > General > About.Affected if watchOS below 10.6, tvOS below 17.6, or visionOS below 1.3
Your environment is affected if you use any WebKit-based browser or web view on Apple devices running versions below the fixed releases (Safari 17.6, iOS/iPadOS 16.7.9 or 17.6, macOS 14.6, tvOS 17.6, visionOS 1.3, watchOS 10.6).
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.310.614.6
Update affected Apple products to the fixed versions: Safari 17.6, iOS/iPadOS 16.7.9 or 17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, or watchOS 10.6.
Upgrade to the fixed version: Safari 17.6, iOS 16.7.9/17.6, iPadOS 16.7.9/17.6, macOS Sonoma 14.6, tvOS 17.6, visionOS 1.3, or watchOS 10.6 depending on device
- Identify the affected Apple device (iPhone, iPad, Mac, Apple Watch, Apple TV, or Vision Pro)
- Determine the current installed version of the operating system or Safari
- For iPhone/iPad: Navigate to Settings > General > Software Update and upgrade to iOS/iPadOS 16.7.9 or 17.6
- For Mac: Navigate to System Settings > General > Software Update and upgrade to macOS Sonoma 14.6
- For Apple Watch: Navigate to Settings > General > Software Update on the watch or via the iPhone Watch app and upgrade to watchOS 10.6
- For Apple TV: Go to Settings > System > Software Updates and upgrade to tvOS 17.6
- For Vision Pro: Go to Settings > General > Software Update and upgrade to visionOS 1.3
- For Safari (macOS): Update Safari via macOS software update to version 17.6
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation1.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,696.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-40785 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- lists.debian.org
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- support.apple.com
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-40785 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data