~ / search / GHSA-q4m3-2j7h-f7xw

GHSA-q4m3-2j7h-f7xw

Cross-Site Scripting in jquery

Source: GitHub Advisory Database (reviewed) Moderate CVE-2020-7656

Packages

EcosystemPackageAffectedFixed in
npm jquery >= 1.2.1, < 1.9.0 1.9.0
NuGet jQuery >= 1.2.1, < 1.9.0 1.9.0
RubyGems jquery-rails < 2.2.0 2.2.0
Maven org.webjars.npm:jquery >= 1.2.1, < 1.9.0 1.9.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.