Rule Definition
While some known vulnerabilities lead to only minor impacts, some of the largest breaches to date have relied on exploiting known vulnerabilities in components. Depending on the assets you are protecting, perhaps this risk should be at the top of the list.
Remediation
Do not use jQuery $(location.hash)
Violation Code Sample
<script src="https://code.jquery.com/jquery-1.6.2.js"></script>
...
$(location.hash) // XSS vulnerability
...
Fixed Code Sample
<script src="https://code.jquery.com/jquery-1.6.3.js"></script>
...
$(location.hash) // XSS vulnerability blocked
...
Reference
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4969
Related Technologies
Technical Criterion
CWE-676 - Use of Potentially Dangerous Function
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.