{"answers":{"affected":"2 open source packages ship an affected version, including yard.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49342 exists.","fix":"Upgrade yard to 0.9.44 or later.","what":"CVE-2026-49342 is a medium-severity path traversal vulnerability in lsegal yard, published on 19 Jun 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-49342 and fix it if it is affected.\n\nWhat it is: CVE-2026-49342 is a medium-severity path traversal vulnerability in lsegal yard, published on 19 Jun 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-49342 exists.\n\nAffected packages and fixed versions:\n- yard (RubyGems): affected all versions; fixed in 0.9.44\n- yard (RubyGems): affected all versions; fixed in 0.9.44\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-49342/ (Markdown: https://insights.sbomify.com/CVE-2026-49342/index.md)","id":"CVE-2026-49342","markdown":"https://insights.sbomify.com/CVE-2026-49342/index.md","name":"CVE-2026-49342","record":{"aliases":["DEBIAN-CVE-2026-49342","GHSA-pxcc-8665-phx8","OESA-2026-2851","OESA-2026-2852","UBUNTU-CVE-2026-49342"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby documentation tool","requires_auth":"none","summary":"Attackers can read arbitrary HTML files outside the intended directory if YARD is configured with a document root, due to premature path resolution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"YARD is a documentation generation tool for the Ruby programming language. Prior to version 0.9.44, YARD's static cache lookup reads a request path before the router's path cleanup runs. When a server is configured with a document root, a traversal path such as `/../yard-cache-secret.html` is joined against that root and can return a readable sibling `.html` file outside the intended static tree. Version 0.9.44 patches the issue.","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":"YARD static cache reads raw traversal paths before router sanitization","id":"CVE-2026-49342","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Klever-Go KVM: Throttler slot leak in trie account-data sync causes epoch bootstrap / state sync DoS","id":"CVE-2026-49343"},"packages":[{"ecosystem":"RubyGems","fixed":["0.9.44"],"introduced":["0"],"last_affected":[],"package":"yard","purl":null,"source":"GHSA-pxcc-8665-phx8"},{"ecosystem":"RubyGems","fixed":["0.9.44"],"introduced":["0"],"last_affected":[],"package":"yard","purl":"pkg:gem/yard","source":"GHSA-pxcc-8665-phx8"}],"prev":{"headline":"gonic has arbitrary file write in createPlaylist: any authenticated user can write playlist M3U content to attacker-controlled path on the host","id":"CVE-2026-49340"},"products":["yard"],"published":"2026-06-19","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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-22","vendors":["lsegal"]},"summary":"Attackers can read arbitrary HTML files outside the intended directory if YARD is configured with a document root, due to premature path resolution.","url":"https://insights.sbomify.com/CVE-2026-49342/"}