QID 981001

QID 981001: Java (maven) Security Update for org.webjars.npm:jquery (GHSA-2pqj-h3vj-pqgw)

Affected versions of `jquery` are vulnerable to cross-site scripting. This occurs because the main `jquery` function uses a regular expression to differentiate between HTML and selectors, but does not properly anchor the regular expression. The result is that `jquery` may interpret HTML as selectors when given certain inputs, allowing for client side code execution.

## Proof of Concept
```
$("#log").html(
$("element[attribute='<img src="x" onerror="alert(1)" />']").html()
);
```




## Recommendation

Update to version 1.9.0 or later.

Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.

  • CVSS V3 rated as High - 6.1 severity.
  • CVSS V2 rated as Medium - 4.3 severity.
  • Solution
    Customers are advised to refer to GHSA-2pqj-h3vj-pqgw for updates pertaining to this vulnerability.
    Vendor References

    CVEs related to QID 981001

    Software Advisories
    Advisory ID Software Component Link
    GHSA-2pqj-h3vj-pqgw org.webjars.npm:jquery URL Logo github.com/advisories/GHSA-2pqj-h3vj-pqgw