Lookup for vulnerable packages by Package URL.
| Purl | pkg:npm/jquery-ujs@1.0.2 |
| Type | npm |
| Namespace | |
| Name | jquery-ujs |
| Version | 1.0.2 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 1.0.4 |
| Latest_non_vulnerable_version | 1.0.4 |
| Affected_by_vulnerabilities |
| 0 |
| url |
VCID-k1jn-jwbx-qya1 |
| vulnerability_id |
VCID-k1jn-jwbx-qya1 |
| summary |
CSRF vulnerability
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 nhref 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. |
| references |
|
| fixed_packages |
|
| aliases |
GMS-2015-14
|
| risk_score |
null |
| exploitability |
0.5 |
| weighted_severity |
0.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-k1jn-jwbx-qya1 |
|
| 1 |
| url |
VCID-x5j5-g553-hudp |
| vulnerability_id |
VCID-x5j5-g553-hudp |
| summary |
CSRF Vulnerability in jquery-ujs
Versions 1.0.3 and earlier of jquery-ujs are vulnerable to an information leakage attack that may enable attackers to launch CSRF attacks, as it allows attackers to send CSRF tokens to external domains.
When an attacker controls the href attribute of an anchor tag, or
the action attribute of a form tag triggering a POST action, the attacker can set the
href or action to " https://attacker.com". By prepending a space to the external domain, it causes jQuery to consider it a same origin request, resulting in the user's CSRF token being sent to the external domain.
## Recommendation
Upgrade jquery-ujs to version 1.0.4 or later. |
| references |
|
| fixed_packages |
|
| aliases |
GHSA-6qqj-rx4w-r3cj, GMS-2020-740
|
| risk_score |
3.1 |
| exploitability |
0.5 |
| weighted_severity |
6.2 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-x5j5-g553-hudp |
|
|
| Fixing_vulnerabilities |
|
| Risk_score | 3.1 |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:npm/jquery-ujs@1.0.2 |