{"answers":{"affected":"2 open source packages ship an affected version, including jquery-ujs.","exploited":"There is no known exploitation of GHSA-6qqj-rx4w-r3cj in the wild and no public exploit code.","fix":"Upgrade jquery-ujs to 1.0.4 or later.","what":"GHSA-6qqj-rx4w-r3cj is a vulnerability in jquery-ujs, published on 31 Aug 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-6qqj-rx4w-r3cj and fix it if it is affected.\n\nWhat it is: GHSA-6qqj-rx4w-r3cj is a vulnerability in jquery-ujs, published on 31 Aug 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-6qqj-rx4w-r3cj in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jquery-ujs (npm): affected all versions; fixed in 1.0.4\n- jquery-ujs (npm): affected all versions; fixed in 1.0.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-6qqj-rx4w-r3cj/ (Markdown: https://insights.sbomify.com/GHSA-6qqj-rx4w-r3cj/index.md)","id":"GHSA-6qqj-rx4w-r3cj","markdown":"https://insights.sbomify.com/GHSA-6qqj-rx4w-r3cj/index.md","name":"GHSA-6qqj-rx4w-r3cj","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript library","requires_auth":"low_privilege","summary":"Attackers can leak CSRF tokens to external domains via crafted links, enabling CSRF attacks against users of the jquery-ujs library.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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## Recommendation\n\nUpgrade jquery-ujs to version 1.0.4 or later.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"CSRF Vulnerability in jquery-ujs","id":"GHSA-6qqj-rx4w-r3cj","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"csrf","year":"2020"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"jquery-ujs","purl":null,"source":"GHSA-6qqj-rx4w-r3cj"},{"ecosystem":"npm","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"jquery-ujs","purl":"pkg:npm/jquery-ujs","source":"GHSA-6qqj-rx4w-r3cj"}],"products":null,"published":"2020-08-31","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can leak CSRF tokens to external domains via crafted links, enabling CSRF attacks against users of the jquery-ujs library.","url":"https://insights.sbomify.com/GHSA-6qqj-rx4w-r3cj/"}