CVE-2020-7656 Cross-Site Scripting in jquery
An attacker can execute arbitrary scripts in a victim's browser via the jQuery load method due to improper tag filtering.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-7656?
CVE-2020-7656 is a medium-severity cross-site scripting vulnerability in Juniper Junos, published on 19 May 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
jquery prior to 1.9.0 allows Cross-site Scripting attacks via the load method. The load method fails to recognize and remove "<script>" HTML tags that contain a whitespace character, i.e: "</script >", which results in the enclosed script logic to be executed.
Weakness: CWE-79
Which versions are affected by CVE-2020-7656?
8 open source packages ship an affected version, including org.webjars.npm:jquery, jQuery and jquery-rails. It affects 7 products.
| Package | Affected | Fixed in |
|---|---|---|
org.webjars.npm:jquery Maven | From 1.2.1 | 1.9.0 |
org.webjars.npm:jquery Maven | From 1.2.1 | 1.9.0 |
jQuery NuGet | From 1.2.1 | 1.9.0 |
jQuery NuGet | From 1.2.1 | 1.9.0 |
jquery-rails RubyGems | All versions | 2.2.0 |
jquery-rails RubyGems | All versions | 2.2.0 |
2 more packages
jquery npm | From 1.2.1 | 1.9.0 |
jquery npm | From 1.2.1 | 1.9.0 |
Products include Jquery Jquery, Juniper Junos, Netapp Active Iq Unified Manager, Netapp Cloud Backup, Netapp Oncommand System Manager, Netapp Snap Creator Framework and 1 more.
How do I fix CVE-2020-7656?
Upgrade org.webjars.npm:jquery to 1.9.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-7656 being exploited?
There is no known exploitation of CVE-2020-7656 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Juniper Junos
Sources
Also known as GHSA-q4m3-2j7h-f7xw, SNYK-JS-JQUERY-569619, UBUNTU-CVE-2020-7656.