CVE-2012-5851

WebKit - Cross-Site Scripting Bypass via Reflected Data

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2012-5851. PoCs published by Tushar Dalvi.

AI-analyzed exploit summary This exploit demonstrates a cross-site scripting (XSS) vulnerability in WebKit by bypassing the XSS filter mechanism. The provided test.jsp code and URI example show how an attacker can inject arbitrary JavaScript code to steal cookie-based authentication credentials.

Description

html/parser/XSSAuditor.cpp in WebCore in WebKit, as used in Google Chrome through 22 and Safari 5.1.7, does not consider all possible output contexts of reflected data, which makes it easier for remote attackers to bypass a cross-site scripting (XSS) protection mechanism via a crafted string, aka rdar problem 12019108.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Tushar Dalvi · textwebappsphp
https://www.exploit-db.com/exploits/38024

This exploit demonstrates a cross-site scripting (XSS) vulnerability in WebKit by bypassing the XSS filter mechanism. The provided test.jsp code and URI example show how an attacker can inject arbitrary JavaScript code to steal cookie-based authentication credentials.

Classification
Working Poc 90%
Attack Type
Xss
Complexity
Trivial
Reliability
Reliable
Target: WebKit (versions affected by CVE-2012-5851)
No auth needed
Prerequisites: A vulnerable WebKit-based application that processes user input in a similar manner to the provided test.jsp example
MITRE ATT&CK
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (3)

Core 3
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/80072
Exploit x_refsource_confirm
https://bugs.webkit.org/show_bug.cgi?id=92692

Scores

EPSS 0.0234
EPSS Percentile 81.6%

Details

CWE
CWE-79
Status published
Products (50)
apple/safari 5.1.7
apple/webkit
google/chrome 22.0.1229.0
google/chrome 22.0.1229.1
google/chrome 22.0.1229.2
google/chrome 22.0.1229.3
google/chrome 22.0.1229.4
google/chrome 22.0.1229.6
google/chrome 22.0.1229.7
google/chrome 22.0.1229.8
... and 40 more
Published Nov 15, 2012
Tracked Since Feb 18, 2026