MediumGHSA-q4m3-2j7h-f7xwCVE-2020-7656SNYK-JS-JQUERY-569619

Cross-Site Scripting in jquery

Published 20 May 2020 · Updated 8 Jul 2026

Affected package

Affected
>=1.2.1 <1.9.0
Fixed in
1.9.0
Update to the fixed version for your release line, for example:npm install jquery@1.9.0

Details

Versions of jquery prior to 1.9.0 are vulnerable to Cross-Site Scripting. 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. This allows attackers to execute arbitrary JavaScript in a victim's browser.

Recommendation

Upgrade to version 1.9.0 or later.

Is GHSA-q4m3-2j7h-f7xw in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected jquery, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.