{"answers":{"affected":"2 open source packages ship an affected version, including view_component.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44836 exists.","fix":"Upgrade view_component to 4.9.0 or later.","what":"CVE-2026-44836 is a medium-severity code injection vulnerability in ViewComponent view_component, published on 26 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-44836 and fix it if it is affected.\n\nWhat it is: CVE-2026-44836 is a medium-severity code injection vulnerability in ViewComponent view_component, published on 26 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44836 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-44836/ (Markdown: https://insights.sbomify.com/CVE-2026-44836/index.md)","id":"CVE-2026-44836","markdown":"https://insights.sbomify.com/CVE-2026-44836/index.md","name":"CVE-2026-44836","record":{"aliases":["DEBIAN-CVE-2026-44836","GHSA-7f3r-gwc9-2995","UBUNTU-CVE-2026-44836"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby on Rails library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code or read data by exploiting unsafe public_send calls in preview routes if previews are exposed.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-749","name":"Exposed Dangerous Method or Function"}],"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 preview route derives an example name from the URL and calls it with public_send. The code does not verify that the requested method is one of the preview examples explicitly defined by the preview class. As a result, inherited public methods on ViewComponent::Preview are route-reachable. The most important one is render_with_template, which accepts template: and locals:. Those values can come from request params and are later passed to Rails as render template:. If previews are exposed, an attacker can render internal Rails templates that are not otherwise routable. 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: Preview Route Can Dispatch Inherited Helper Methods","id":"CVE-2026-44836","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"view_component: System Test Entry Point Path Check Allows Sibling Directory Escape","id":"CVE-2026-44837"},"packages":[{"ecosystem":"RubyGems","fixed":["4.9.0"],"introduced":["3.0.0"],"last_affected":[],"package":"view_component","purl":null,"source":"GHSA-7f3r-gwc9-2995"},{"ecosystem":"RubyGems","fixed":["4.9.0"],"introduced":["3.0.0"],"last_affected":[],"package":"view_component","purl":"pkg:gem/view_component","source":"GHSA-7f3r-gwc9-2995"}],"prev":{"headline":"Snipe-IT: Open redirect vulnerability","id":"CVE-2026-44833"},"products":["view_component"],"published":"2026-05-26","related":[],"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":"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-27","vendors":["ViewComponent"]},"summary":"Attackers can execute arbitrary code or read data by exploiting unsafe public_send calls in preview routes if previews are exposed.","url":"https://insights.sbomify.com/CVE-2026-44836/"}