Advisory

GHSA-q4m3-2j7h-f7xw

Also known as: CVE-2020-7656, SNYK-JS-JQUERY-569619

Summary

Cross-Site Scripting in jquery

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-05-20 16:18 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

jquery

npm · All systems

Affected

  • introduced 1.2.1, fixed 1.9.0 (semver)

Fixed versions

1.9.0

Fix

jQuery

NuGet · All systems

Affected

  • introduced 1.2.1, fixed 1.9.0 (ecosystem)

Fixed versions

1.9.0

Fix

The export has no generic command for this ecosystem.

jquery-rails

RubyGems · All systems

Affected

  • introduced 0, fixed 2.2.0 (ecosystem)

Fixed versions

2.2.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences