{"id":"GHSA-6qqj-rx4w-r3cj","aliases":[],"url":"https://o3.security/vulnerability/GHSA-6qqj-rx4w-r3cj","summary":"CSRF Vulnerability in jquery-ujs","details":"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.\n\nWhen an attacker controls the href attribute of an anchor tag, or\nthe action attribute of a form tag triggering a POST action, the attacker can set the\nhref 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.\n\n\n## Recommendation\n\nUpgrade jquery-ujs to version 1.0.4 or later.","published":"2020-08-31T22:48:44Z","modified":"2021-09-23T19:45:13Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"jquery-ujs","fixedVersion":"1.0.4"}],"fix":null,"references":[{"type":"WEB","url":"https://hackerone.com/reports/49935"},{"type":"WEB","url":"https://groups.google.com/forum/#!msg/rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J"},{"type":"WEB","url":"https://snyk.io/vuln/npm:jquery-ujs:20150624"},{"type":"WEB","url":"https://www.npmjs.com/advisories/15"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-09-23T19:45:13Z"}}