Skip to content
OpenAdvisories

Description

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, jQuery determined whether the input was HTML by looking for the '<' character anywhere in the string, giving attackers more flexibility when attempting to construct a malicious payload. In fixed versions, jQuery only deems the input to be HTML if it explicitly starts with the '<' character, limiting exploitability only to attackers who can control the beginning of a string, which is far less common.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS jquery 3.2.1-1ubuntu0.1~esm1 USN-7622-1
Ubuntu Pro 16.04 LTS jquery 1.11.3+dfsg-4ubuntu0.1~esm1 USN-7622-1
Ubuntu Pro 14.04 LTS jquery 1.7.2+dfsg-2ubuntu1+esm1 USN-7622-1
ReleasePackageFixed inAdvisory
SLES 15 SP1 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
SLES 15 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
SLE HPC 15 ruby2.5 2.5.7-4.8.1 SUSE-SU-2020:0737-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.1 ruby2.5 2.5.7-lp151.4.6.1 openSUSE-SU-2020:0395-1
ReleasePackageFixed inAdvisory
Alpine v3.10 ruby 2.5.6-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 ceph 18.2.2-1 —
Azure Linux 3 python-blinker 1.7.0-4 —
Azure Linux 3 python-httplib2 No fix yet —
Azure Linux 2 (CBL-Mariner) python-httplib2 No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.webjars.npm:jquery < 1.9.0 1.9.0 GHSA-2pqj-h3vj-pqgw
npm jquery < 1.9.0 1.9.0 GHSA-2pqj-h3vj-pqgw
NuGet jQuery < 1.9.0 1.9.0 GHSA-2pqj-h3vj-pqgw
RubyGems jquery-rails < 2.2.0 2.2.0 GHSA-2pqj-h3vj-pqgw

Advisories 9

References