{"answers":{"affected":"6 open source packages ship an affected version, including jquery-rails and jquery-ujs. It affects 4 products.","exploited":"There is no known exploitation of CVE-2015-1840 in the wild and no public exploit code.","fix":"Upgrade jquery-rails to a fixed version for your release line: 3.1.3 or 4.0.4.","what":"CVE-2015-1840 is a medium-severity vulnerability in Fedoraproject Fedora, published on 26 Jul 2015. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2015-1840 and fix it if it is affected.\n\nWhat it is: CVE-2015-1840 is a medium-severity vulnerability in Fedoraproject Fedora, published on 26 Jul 2015. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2015-1840 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jquery-rails (RubyGems): affected all versions; fixed in 3.1.3\n- jquery-rails (RubyGems): affected all versions; fixed in 3.1.3\n- jquery-rails (RubyGems): affected from 4.0.0; fixed in 4.0.4\n- jquery-rails (RubyGems): affected from 4.0.0; fixed in 4.0.4\n- jquery-ujs (RubyGems): affected all versions; fixed in 1.0.4\n- jquery-ujs (RubyGems): 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/CVE-2015-1840/ (Markdown: https://insights.sbomify.com/CVE-2015-1840/index.md)","id":"CVE-2015-1840","markdown":"https://insights.sbomify.com/CVE-2015-1840/index.md","name":"CVE-2015-1840","record":{"aliases":["DEBIAN-CVE-2015-1840","GHSA-4whc-pp4x-9pf3","openSUSE-SU-2024:10512-1","openSUSE-SU-2024:11334-1","openSUSE-SU-2024:12144-1","openSUSE-SU-2024:13159-1","openSUSE-SU-2024:14169-1","openSUSE-SU-2025:15117-1","openSUSE-SU-2026:10350-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails library","requires_auth":"none","summary":"Remote attackers can bypass Same Origin Policy and leak CSRF tokens to external servers via crafted URLs in Ruby on Rails applications.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"opensuse","vendor":"opensuse"},{"product":"jquery-rails","vendor":"rubyonrails"},{"product":"jquery-ujs","vendor":"rubyonrails"}],"cvss":{"score":5,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","version":"2.0"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"jquery_ujs.js in jquery-rails before 3.1.3 and 4.x before 4.0.4 and rails.js in jquery-ujs before 1.0.4, as used with Ruby on Rails 3.x and 4.x, allow remote attackers to bypass the Same Origin Policy, and trigger transmission of a CSRF token to a different-domain web server, via a leading space character in a URL within an attribute value.","ecosystems":["RubyGems","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"jquery-rails and jquery-ujs subject to Exposure of Sensitive Information","id":"CVE-2015-1840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"fedoraproject:fedora","products":["fedoraproject:fedora","opensuse:opensuse"],"type":"csrf","year":"2015"},"n_packages":11,"n_references":8,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2015-1841"},"packages":[{"ecosystem":"RubyGems","fixed":["3.1.3"],"introduced":["0"],"last_affected":[],"package":"jquery-rails","purl":null,"source":"GHSA-4whc-pp4x-9pf3"},{"ecosystem":"RubyGems","fixed":["3.1.3"],"introduced":["0"],"last_affected":[],"package":"jquery-rails","purl":"pkg:gem/jquery-rails","source":"GHSA-4whc-pp4x-9pf3"},{"ecosystem":"RubyGems","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"jquery-rails","purl":null,"source":"GHSA-4whc-pp4x-9pf3"},{"ecosystem":"RubyGems","fixed":["4.0.4"],"introduced":["4.0.0"],"last_affected":[],"package":"jquery-rails","purl":"pkg:gem/jquery-rails","source":"GHSA-4whc-pp4x-9pf3"},{"ecosystem":"RubyGems","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"jquery-ujs","purl":null,"source":"GHSA-4whc-pp4x-9pf3"},{"ecosystem":"RubyGems","fixed":["1.0.4"],"introduced":["0"],"last_affected":[],"package":"jquery-ujs","purl":"pkg:gem/jquery-ujs","source":"GHSA-4whc-pp4x-9pf3"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.5.1-1.3"],"introduced":["0"],"last_affected":[],"package":"ruby3.2-rubygem-jquery-rails","purl":"pkg:rpm/opensuse/ruby3.2-rubygem-jquery-rails\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13159-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.5.0-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-jquery-rails","purl":"pkg:rpm/opensuse/rubygem-jquery-rails\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12144-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.6.0-1.5"],"introduced":["0"],"last_affected":[],"package":"rubygem-jquery-rails","purl":"pkg:rpm/opensuse/rubygem-jquery-rails\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14169-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.6.0-1.7"],"introduced":["0"],"last_affected":[],"package":"rubygem-jquery-rails","purl":"pkg:rpm/opensuse/rubygem-jquery-rails\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15117-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.6.0-1.9"],"introduced":["0"],"last_affected":[],"package":"rubygem-jquery-rails","purl":"pkg:rpm/opensuse/rubygem-jquery-rails\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10350-1"}],"prev":{"headline":"SaltStack has insecure /tmp file handling in salt/modules/chef.py","id":"CVE-2015-1839"},"products":["n/a"],"published":"2015-07-26","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can bypass Same Origin Policy and leak CSRF tokens to external servers via crafted URLs in Ruby on Rails applications.","url":"https://insights.sbomify.com/CVE-2015-1840/"}