GitHub Advisoryadvisory · npm, NuGet, RubyGems, Maven
GHSA-q4m3-2j7h-f7xw Cross-Site Scripting in jquery
MEDIUM
Official page ↗
- Aliases
- CVE-2020-7656
- Ecosystem
- npm, NuGet, RubyGems, Maven
- Packages
- jquery, jQuery, jquery-rails, org.webjars.npm:jquery
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2020-05-20
Affected packages
• npm jquery: >= 1.2.1, < 1.9.0 → fixed in 1.9.0
• NuGet jQuery: >= 1.2.1, < 1.9.0 → fixed in 1.9.0
• RubyGems jquery-rails: < 2.2.0 → fixed in 2.2.0
• Maven org.webjars.npm:jquery: >= 1.2.1, < 1.9.0 → fixed in 1.9.0
Description
Versions of `jquery` prior to 1.9.0 are vulnerable to Cross-Site Scripting. The load method fails to recognize and remove `` HTML tags that contain a whitespace character, i.e: ``, which results in the enclosed script logic to be executed. This allows attackers to execute arbitrary JavaScript in a victim's browser.
Recommendation
Upgrade to version 1.9.0 or later.
Related
Alias · CVE (1)
- CVE-2020-7656 jquery prior to 1.9.0 allows Cross-site Scripting attacks via the load method. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7656 advisory
- https://github.com/jquery/jquery/commit/05531fc4080ae24070930d15ae0cea7ae056457d web
- https://github.com/jquery/jquery/commit/606b863edaff29035960e4d813b45d63b8d92876 web
- https://github.com/jquery/jquery package
- https://github.com/jquery/jquery/blob/9e6393b0bcb52b15313f88141d0bd7dd54227426/src/ajax.js#L203 web
- https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md#220-19-january-2013 web
- https://github.com/rails/jquery-rails/blob/v2.1.4/vendor/assets/javascripts/jquery.js#L7481 web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2020-7656.yml web
- https://security.netapp.com/advisory/ntap-20200528-0001 web
- https://snyk.io/vuln/SNYK-JS-JQUERY-569619 web
- https://supportportal.juniper.net/s/article/2021-07-Security-Bulletin-Junos-OS-Multiple-J-Web-vulnerabilities-resolved-in-Junos-OS-21-2R1?language=en_US web
- https://www.oracle.com/security-alerts/cpujul2022.html web