jquery-ujs@1.0.2 vulnerabilities

Unobtrusive scripting adapter for jQuery

Direct Vulnerabilities

Known vulnerabilities in the jquery-ujs package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Request Forgery (CSRF)

jquery-ujs is an Unobtrusive scripting adapter for jQuery

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). It can be used to bypass CSP protections and allows attackers to send CSRF tokens to attacker domains. In the scenario where an attacker might be able to control the href attribute of an anchor tag or the action attribute of a form tag that will trigger a POST action, the attacker can set the href or action to " https://attacker.com" (note the leading space) that will be passed to JQuery, who will see this as a same origin request, and send the user's CSRF token to the attacker domain.

How to fix Cross-site Request Forgery (CSRF)?

Upgrade jquery-ujs to version 1.0.4 or higher.

<1.0.4
  • M
Cross-site Request Forgery (CSRF)

jquery-ujs is an Unobtrusive scripting adapter for jQuery

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). It can be used to bypass CSP protections and allows attackers to send CSRF tokens to attacker domains. In the scenario where an attacker might be able to control the href attribute of an anchor tag or the action attribute of a form tag that will trigger a POST action, the attacker can set the href or action to " https://attacker.com" (note the leading space) that will be passed to JQuery, who will see this as a same origin request, and send the user's CSRF token to the attacker domain.

How to fix Cross-site Request Forgery (CSRF)?

Upgrade jquery-ujs to version 1.0.4 or higher.

<1.0.4