{"answers":{"affected":"2 open source packages ship an affected version, including yard. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-41493 in the wild and no public exploit code.","fix":"Upgrade yard to 0.9.42 or later.","what":"CVE-2026-41493 is a medium-severity path traversal vulnerability in lsegal yard, published on 8 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-41493 and fix it if it is affected.\n\nWhat it is: CVE-2026-41493 is a medium-severity path traversal vulnerability in lsegal yard, published on 8 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-41493 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- yard (RubyGems): affected all versions; fixed in 0.9.42\n- yard (RubyGems): affected all versions; fixed in 0.9.42\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-41493/ (Markdown: https://insights.sbomify.com/CVE-2026-41493/index.md)","id":"CVE-2026-41493","markdown":"https://insights.sbomify.com/CVE-2026-41493/index.md","name":"CVE-2026-41493","record":{"aliases":["DEBIAN-CVE-2026-41493","GHSA-3jfp-46x4-xgfj","OESA-2026-2205","OESA-2026-2206","OESA-2026-2207","OESA-2026-2208","OESA-2026-2285","UBUNTU-CVE-2026-41493"],"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 access arbitrary files on the host machine when using the YARD server to serve documentation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"yard","vendor":"yardoc"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"YARD is a Ruby Documentation tool. Prior to version 0.9.42, a path traversal vulnerability was discovered in YARD when using yard server to serve documentation. This bug would allow unsanitized HTTP requests to access arbitrary files on the machine of a yard server host under certain conditions. This issue has been patched in version 0.9.42.","ecosystems":["RubyGems"],"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":"yard: Possible arbitrary path traversal and file access via yard server","id":"CVE-2026-41493","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":"n8n-MCP Logs Sensitive Request Data on Unauthorized /mcp Requests","id":"CVE-2026-41495"},"packages":[{"ecosystem":"RubyGems","fixed":["0.9.42"],"introduced":["0"],"last_affected":[],"package":"yard","purl":null,"source":"GHSA-3jfp-46x4-xgfj"},{"ecosystem":"RubyGems","fixed":["0.9.42"],"introduced":["0"],"last_affected":[],"package":"yard","purl":"pkg:gem/yard","source":"GHSA-3jfp-46x4-xgfj"}],"prev":{"headline":"Unauthenticated Admin Token Disclosure Leading to Authentication Bypass via /debug/vars in Dgraph","id":"CVE-2026-41492"},"products":["yard"],"published":"2026-05-08","related":[{"cvss_score":7.5,"headline":"Path Traversal vulnerability that affects yard","id":"CVE-2019-1020001","kev_date_added":null,"published":"2019-07-29"},{"cvss_score":7.5,"headline":"Arbitrary file read vulnerability in yard server","id":"CVE-2017-17042","kev_date_added":null,"published":"2017-11-28"}],"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-08","vendors":["lsegal"]},"summary":"Attackers can access arbitrary files on the host machine when using the YARD server to serve documentation.","url":"https://insights.sbomify.com/CVE-2026-41493/"}