CVE-2023-40397 in Apple Macos and 2 more products
The issue was addressed with improved checks. This issue is fixed in macOS Ventura 13.5. A remote attacker may be able to cause arbitrary javascript code execution.
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Apple | Macos | < 13.5 |
| Webkitgtk | Webkitgtk | < 2.40.5 |
| Wpewebkit | Wpe Webkit | < 2.40.5 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
The issue was addressed with improved checks. This issue is fixed in macOS Ventura 13.5. A remote attacker may be able to cause arbitrary javascript code execution.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-40397 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-343443-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-09-06 |
| Last modified | 2026-06-17 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A vulnerability in macOS Ventura prior to version 13.5 allows a remote attacker to execute arbitrary JavaScript code, potentially leading to unauthorized access or system compromise.
The attack vector involves a remote attacker exploiting a flaw in the handling of JavaScript code execution, which could be triggered by visiting a malicious website or opening a specially crafted file.
Questions
What is CVE-2023-40397?
A vulnerability in macOS Ventura prior to version 13.5 allows a remote attacker to execute arbitrary JavaScript code, potentially leading to unauthorized access or system compromise.
What is the CVSS score for CVE-2023-40397?
CVE-2023-40397 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.8%.
Is CVE-2023-40397 actively exploited?
No confirmed active exploitation of CVE-2023-40397 as of 2026-09-25.
How do I remediate CVE-2023-40397?
Priority: IMMEDIATE. Advisory: https://support.apple.com/en-us/HT213843 PSIRT: [email protected]
What systems are affected by CVE-2023-40397?
CVE-2023-40397 affects Apple Macos; Webkitgtk Webkitgtk; Wpewebkit Wpe Webkit.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Apple","product":"Macos","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.