CVE-2012-6708
jQuery before 1.9.0 is vulnerable to Cross-site Scripting (XSS) attacks. The jQuery(strInput) function does not differentiate selectors from HTML in a reliable fashion. In vulnerable versions, jQue...
Description
This CSAF advisory was extracted from unstructured data and may contain inaccuracies. If you notice any errors, please reach out to the designated contact at CISA CSAF: central@cisa.dhs.gov
In plain language
AI Worth attentionIf your software uses an old jQuery (before 1.9.0), an attacker can trick someone to visit a page that runs malicious JavaScript in the victim’s browser; a typical small business should check and update if your site/app uses jQuery with user-entered text.
jQuery before 1.9.0 is vulnerable to Cross-site Scripting (XSS) because the `jQuery(strInput)` behavior does not reliably treat text as a selector vs HTML, so untrusted input can be interpreted in a way that lets attackers run unauthorized scripts in a visitor’s browser (authentication not required, but user interaction is required).
What to do now
- Check everywhere your web app includes jQuery (including packaged versions like
jquery-railsand JavaScript bundles) and confirm the version is at least 1.9.0 (or jquery-rails 2.2.0 if you use that). - Identify if any code passes user-entered text into the main jQuery function (the pattern is “use
$(...)/jQuery(...)where the argument comes from browser input”). - Update jQuery to 1.9.0 or later (and update
jquery-railsto 2.2.0 or later if applicable). - Retest the affected pages/forms to confirm your input is no longer executed as script or HTML when rendered on a visitor’s browser.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:RUser InteractionS:CScopeC:LConfidentialityI:LIntegrityA:NAvailabilityWeaknesses
Affected Products
Exploitability
Exploit details including PoC links, Metasploit modules, and scanner templates are available after registration.
View exploit detailsAttack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
2 techniquesReferences
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2012-6708 and every CVE in our database. Create a free account — no credit card required.
Create Free Account