{"answers":{"affected":"2 open source packages ship an affected version, including view_component. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44837 exists.","fix":"Upgrade view_component to 4.9.0 or later.","what":"CVE-2026-44837 is a medium-severity path traversal vulnerability in ViewComponent view_component, published on 26 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-44837 and fix it if it is affected.\n\nWhat it is: CVE-2026-44837 is a medium-severity path traversal vulnerability in ViewComponent view_component, published on 26 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44837 exists.\n\nAffected packages and fixed versions:\n- view_component (RubyGems): affected from 3.0.0; fixed in 4.9.0\n- view_component (RubyGems): affected from 3.0.0; fixed in 4.9.0\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-2026-44837/ (Markdown: https://insights.sbomify.com/CVE-2026-44837/index.md)","id":"CVE-2026-44837","markdown":"https://insights.sbomify.com/CVE-2026-44837/index.md","name":"CVE-2026-44837","record":{"aliases":["DEBIAN-CVE-2026-44837","GHSA-hg3h-g7xc-f7vp","UBUNTU-CVE-2026-44837"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","other"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails library","requires_auth":"none","summary":"Attackers can escape the intended directory in system tests by exploiting a flawed path prefix check, potentially accessing sibling directories.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"view_component","vendor":"viewcomponent"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-187","name":"Partial String Comparison"}],"description":"view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 3.0.0 to 4.9.0, the system test entrypoint canonicalizes a user-controlled file path with File.realpath, then checks whether the resolved path starts with the temp directory path. This is not a safe containment check because sibling directories can share the same string prefix. This vulnerability is fixed in 4.9.0.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"view_component: System Test Entry Point Path Check Allows Sibling Directory Escape","id":"CVE-2026-44837","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"RabbitMQ MQTT Topic Permission Authorization Bypass","id":"CVE-2026-44838"},"packages":[{"ecosystem":"RubyGems","fixed":["4.9.0"],"introduced":["3.0.0"],"last_affected":[],"package":"view_component","purl":null,"source":"GHSA-hg3h-g7xc-f7vp"},{"ecosystem":"RubyGems","fixed":["4.9.0"],"introduced":["3.0.0"],"last_affected":[],"package":"view_component","purl":"pkg:gem/view_component","source":"GHSA-hg3h-g7xc-f7vp"}],"prev":{"headline":"view_component: Preview Route Can Dispatch Inherited Helper Methods","id":"CVE-2026-44836"},"products":["view_component"],"published":"2026-05-26","related":[{"cvss_score":8.7,"headline":"view_component: around_render HTML-Safety Bypass","id":"CVE-2026-54498","kev_date_added":null,"published":"2026-07-17"},{"cvss_score":6.8,"headline":"view_component: Reused Component Instances Retain Stale Render Context","id":"CVE-2026-54497","kev_date_added":null,"published":"2026-07-17"},{"cvss_score":6.1,"headline":"view_component Cross-site Scripting vulnerability","id":"CVE-2024-21636","kev_date_added":null,"published":"2024-01-04"}],"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":"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":"2026-05-28","vendors":["ViewComponent"]},"summary":"Attackers can escape the intended directory in system tests by exploiting a flawed path prefix check, potentially accessing sibling directories.","url":"https://insights.sbomify.com/CVE-2026-44837/"}