{"answers":{"affected":"1 open source package ship an affected version, including rails. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3704 exists.","fix":"No fix has been published for CVE-2022-3704 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-3704 is a low-severity cross-site scripting vulnerability in Rubyonrails Rails, published on 26 Oct 2022. 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 CVE-2022-3704 and fix it if it is affected.\n\nWhat it is: CVE-2022-3704 is a low-severity cross-site scripting vulnerability in Rubyonrails Rails, published on 26 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-3704 exists.\n\nAffected packages and fixed versions:\n- rails (Bitnami): affected all versions; no fix listed\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-2022-3704/ (Markdown: https://insights.sbomify.com/CVE-2022-3704/index.md)","id":"CVE-2022-3704","markdown":"https://insights.sbomify.com/CVE-2022-3704/index.md","name":"CVE-2022-3704","record":{"aliases":["BIT-rails-2022-3704","DEBIAN-CVE-2022-3704"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails","requires_auth":"low_privilege","summary":"Reported XSS in Rails routes table, though maintainers dispute validity; apply patch if concerned.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"rails","vendor":"rubyonrails"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-707","name":"Improper Neutralization"}],"description":"A vulnerability classified as problematic has been found in Ruby on Rails. This affects an unknown part of the file actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb. The manipulation leads to cross site scripting. It is possible to initiate the attack remotely. The real existence of this vulnerability is still doubted at the moment. The name of the patch is be177e4566747b73ff63fd5f529fab564e475ed4. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-212319. NOTE: Maintainer declares that there isn’t a valid attack vector. The issue was wrongly reported as a security vulnerability by a non-member of the Rails team.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Ruby on Rails _table.html.erb cross site scripting","id":"CVE-2022-3704","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"rubyonrails:rails","products":["rubyonrails:rails"],"type":"xss","year":"2022"},"n_packages":1,"n_references":3,"next":{"headline":"vim autocmd quickfix.c qf_update_buffer use after free","id":"CVE-2022-3705"},"packages":[{"ecosystem":"Bitnami","fixed":[],"introduced":[],"last_affected":[],"package":"rails","purl":"pkg:bitnami/rails","source":"BIT-rails-2022-3704"}],"prev":{"headline":"ETIC Telecom Remote Access Server Insufficient Verification of Data Authenticity","id":"CVE-2022-3703"},"products":["Ruby on Rails"],"published":"2022-10-26","related":[{"cvss_score":10,"headline":"Active Record contains deserialization of arbitrary YAML","id":"CVE-2013-0277","kev_date_added":null,"published":"2013-02-13"},{"cvss_score":8.1,"headline":"SQL injection in n/a","id":"CVE-2017-17916","kev_date_added":null,"published":"2017-12-29"},{"cvss_score":8.1,"headline":"SQL injection in n/a","id":"CVE-2017-17917","kev_date_added":null,"published":"2017-12-29"},{"cvss_score":8,"headline":"Rails Active Storage has possible Path Traversal in DiskService","id":"CVE-2026-33195","kev_date_added":null,"published":"2026-03-23"},{"cvss_score":7.5,"headline":"Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch","id":"CVE-2024-26142","kev_date_added":null,"published":"2024-02-27"},{"cvss_score":7.5,"headline":"ReDoS based DoS vulnerability in Action Dispatch","id":"CVE-2023-22792","kev_date_added":null,"published":"2023-02-09"},{"cvss_score":7.5,"headline":"Denial of Service in Action Dispatch","id":"CVE-2021-22902","kev_date_added":null,"published":"2021-06-11"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-03","vendors":["unspecified"]},"summary":"Reported XSS in Rails routes table, though maintainers dispute validity; apply patch if concerned.","url":"https://insights.sbomify.com/CVE-2022-3704/"}