SafariWeb browser · Apple

CVE-2024-40785

MEDIUM · 6.1 CVSS v3.1 Published 2024-07-29
Fix available
A fix is available. Upgrade to 1.3 / 10.6 or later.
See remediation →
68/100
Remediation priority · Elevated
Remotely reachable No privileges

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 · unedited
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.

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 confidence

A 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.

MitigationUpdate 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.

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
SafariWeb browser
Affected:< 17.6
Iphone OsOperating system
Affected:< 16.7.9>= 17.0, < 17.6
IpadosOperating system
Affected:< 16.7.9>= 17.0, < 17.6
WatchosOperating system
Affected:< 10.6
TvosOperating system
Affected:< 17.6
VisionosOperating system
Affected:< 1.3
macOSOperating system
Affected:< 14.6

CVSS 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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify your Apple product and platform
    Determine 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
  2. Check Safari version on macOS or iOS
    On 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
  3. Check iOS or iPadOS version
    Go 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)
  4. Check macOS version
    Click the Apple menu > About This Mac to view the macOS version.
    Affected if macOS version is below 14.6 (Sonoma)
  5. Check watchOS, tvOS, or visionOS version
    On 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Upgrade available Upgrade to 1.3 / 10.6 / 14.6 or later
Fixed in 1.310.614.6
Interim mitigation

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.

Recommended fix High confidence

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

  1. Identify the affected Apple device (iPhone, iPad, Mac, Apple Watch, Apple TV, or Vision Pro)
  2. Determine the current installed version of the operating system or Safari
  3. For iPhone/iPad: Navigate to Settings > General > Software Update and upgrade to iOS/iPadOS 16.7.9 or 17.6
  4. For Mac: Navigate to System Settings > General > Software Update and upgrade to macOS Sonoma 14.6
  5. For Apple Watch: Navigate to Settings > General > Software Update on the watch or via the iPhone Watch app and upgrade to watchOS 10.6
  6. For Apple TV: Go to Settings > System > Software Updates and upgrade to tvOS 17.6
  7. For Vision Pro: Go to Settings > General > Software Update and upgrade to visionOS 1.3
  8. For Safari (macOS): Update Safari via macOS software update to version 17.6
Caveat Security updates typically have minimal breaking changes; however, review Apple release notes for any compatibility concerns with third-party apps or configurations

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Safari Scoped from the published advisory
  • Consultation2.0 h
  • Implementation1.0 h
  • Testing2.0 h
  • Review / QA1.0 h
6.0 hours of engineering $1,060
Get the upgrade done

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 locally
dbcve dependency scanner

Check 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

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-40785 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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