jquery
Affected
- introduced
0, fixed1.9.0(semver)
Fixed versions
1.9.0
Fix
- Fixed version
1.9.0npm install [email protected]
Advisory
Also known as: CVE-2012-6708
Cross-Site Scripting in jquery
Affected versions of jquery are vulnerable to cross-site scripting. This occurs because the main jquery function uses a regular expression to differentiate between HTML and selectors, but does not properly anchor the regular expression. The result is that jquery may interpret HTML as selectors when given certain inputs, allowing for client side code execution.
Proof of Concept
$("#log").html(
$("element[attribute='<img src=\"x\" onerror=\"alert(1)\" />']").html()
);
Recommendation
Update to version 1.9.0 or later.
Medium Basis: The source's own band: MODERATE
0, fixed 1.9.0 (semver)1.9.0
1.9.0npm install [email protected]0, fixed 1.9.0 (ecosystem)1.9.0
The export has no generic command for this ecosystem.
0, fixed 2.2.0 (ecosystem)2.2.0
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0