MEDIUM 6.1 npm

Cross-Site Scripting in jquery

GHSA-q4m3-2j7h-f7xw · CVE-2020-7656 · SNYK-JS-JQUERY-569619

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes