CVE-2017-2504

MEDIUM

Safari < 10.1.1 - Universal Cross-Site Scripting via WebKit Editor Commands

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-2504. PoCs published by Google Security Research.

AI-analyzed exploit summary This PoC exploits a use-after-free (UAF) vulnerability in WebKit's handling of `document.execCommand` by manipulating event queues and document replacement, leading to arbitrary code execution. The exploit triggers a race condition via media query listeners and document focus manipulation.

Description

An issue was discovered in certain Apple products. iOS before 10.3.2 is affected. Safari before 10.1.1 is affected. tvOS before 10.2.1 is affected. The issue involves the "WebKit" component. It allows remote attackers to conduct Universal XSS (UXSS) attacks via a crafted web site that improperly interacts with WebKit Editor commands.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Google Security Research · htmlwebappsmultiple
https://www.exploit-db.com/exploits/42064

This PoC exploits a use-after-free (UAF) vulnerability in WebKit's handling of `document.execCommand` by manipulating event queues and document replacement, leading to arbitrary code execution. The exploit triggers a race condition via media query listeners and document focus manipulation.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Racy
Target: WebKit (Safari 10.0.3)
No auth needed
Prerequisites: User interaction (click) · WebKit-based browser (e.g., Safari)
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (7)

Core 7
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1038487
Vendor Advisory x_refsource_confirm
https://support.apple.com/HT207804
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201706-15
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/42064/
Vendor Advisory x_refsource_confirm
https://support.apple.com/HT207798
Vendor Advisory x_refsource_confirm
https://support.apple.com/HT207801
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/98473

Scores

CVSS v3 6.1
EPSS 0.0079
EPSS Percentile 74.5%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Details

CWE
CWE-79
Status published
Products (3)
apple/iphone_os < 10.3.2
apple/safari < 10.1.1
apple/tvos < 10.2.1
Published May 22, 2017
Tracked Since Feb 18, 2026