Cross-Site Scripting in jquery
Moderate severity
GitHub Reviewed
Published
Sep 1, 2020
to the GitHub Advisory Database
•
Updated Jul 10, 2023
Description
Published by the National Vulnerability Database
Jan 18, 2018
Reviewed
Aug 31, 2020
Published to the GitHub Advisory Database
Sep 1, 2020
Last updated
Jul 10, 2023
Affected versions of
jquery
are vulnerable to cross-site scripting. This occurs because the mainjquery
function uses a regular expression to differentiate between HTML and selectors, but does not properly anchor the regular expression. The result is thatjquery
may interpret HTML as selectors when given certain inputs, allowing for client side code execution.Proof of Concept
Recommendation
Update to version 1.9.0 or later.
References