CVE-2012-5851: html/parser/XSSAuditor.cpp in WebCore in WebKit, as used in Google Chrome through 22 and Safari 5.1.7, does no
CVE-2012-5851 is a medium-severity flaw (CVSS 4.3) affecting webkit, chrome, safari. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.3 (Medium) |
| EPSS exploit chance | 2.3% (top 17%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2012-11-15 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2012-5851?
webkit: mitigate or apply the listed mitigation; chrome: upgrade to newer than 22.0.1229.96; safari: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2012-5851 being exploited?
CVE-2012-5851 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2012-5851 affect?
CVE-2012-5851 affects webkit, chrome, safari. Severity is medium (CVSS 4.3). 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 scrip
How urgent is CVE-2012-5851?
Priority 41/100. Public exploit reference
Software pages
Safari vulnerabilities · Google Chrome vulnerabilities · WebKit vulnerabilities · Apple Safari and WebKit vulnerabilities
Related CVEs
- CVE-2017-7157 HIGH 8.8 UPGRADE UPGRADE An issue was discovered in certain Apple products
- CVE-2017-7156 HIGH 8.8 UPGRADE UPGRADE An issue was discovered in certain Apple products
- CVE-2017-7061 HIGH 8.8 UPGRADE UPGRADE An issue was discovered in certain Apple products
- CVE-2017-7056 HIGH 8.8 UPGRADE UPGRADE An issue was discovered in certain Apple products
- CVE-2017-7055 HIGH 8.8 UPGRADE UPGRADE An issue was discovered in certain Apple products