jQuery DOM manipulation XSS via htmlPrefilter
CVE-2020-11022 is a cross-site scripting vulnerability in jQuery affecting versions starting with 1.12.0 and before 3.5.0. The issue is caused by improper handling of attacker-controlled HTML by jQuery's htmlPrefilter logic prior to insertion through DOM manipulation methods such as .html(), .append(), and related APIs. According to the provided content, HTML from untrusted sources may lead to execution of untrusted code even if that HTML has already been sanitized, because jQuery's preprocessing can transform the markup in unsafe ways before it is inserted into the DOM. The vulnerability is patched in jQuery 3.5.0.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (3 hidden).
This repository is a small browser-side proof-of-concept for CVE-2020-11022 affecting jQuery versions earlier than 3.5.0. It is not a remote exploit framework or weaponized kit; instead, it provides helper scripts to validate a target page and manually demonstrate DOM XSS. The structure is simple: README.md explains the vulnerability and exploitation workflow; jquery_detection.js checks whether jQuery is present and logs its version; dumps_id.js enumerates all DOM element IDs to help identify candidate sinks; payloads.js defines a crafted HTML payload and injects it into the hardcoded selector '#error-msg' using jQuery .html(). The main capability is execution of arbitrary JavaScript in the victim page context via a malicious HTML fragment containing an img onerror handler. No external network endpoints, C2, download URLs, or hardcoded IPs are present. The only fingerprintable targets are local browser-side selectors and file names. Overall, this is a manual DOM-XSS PoC intended for testing vulnerable pages that use old jQuery and unsafe DOM manipulation patterns.
This repository is a proof-of-concept exploit for CVE-2020-11022 and CVE-2020-11023, which are cross-site scripting (XSS) vulnerabilities in jQuery versions prior to 3.5.0. The repository contains two files: a README.md with detailed exploitation instructions and an index.php file that serves as a vulnerable web application. The exploit demonstrates how an attacker can inject arbitrary JavaScript via the 'value' URL parameter, leading to XSS and cookie theft. The attack is performed by hosting index.php on a PHP webserver with a vulnerable jQuery version, then visiting a crafted URL and triggering DOM manipulation via a button. The exploit also shows how to exfiltrate cookies to an attacker-controlled server. The repository is structured as a simple, educational POC and does not include weaponized or automated exploitation features.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A medium-severity cross-site scripting (XSS) vulnerability in jQuery that is commonly present in commercial codebases via open-source dependencies.
A cross-site scripting vulnerability in jQuery related to improper validation in the jQuery.htmlPrefilter method.
A vulnerability in the jQuery dependency (as used by Adobe Experience Manager) described as enabling arbitrary code execution, affecting AEM 6.5.7.0 and earlier.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.