{"id":"CVE-2026-41493","aliases":["CVE-2026-41493","GHSA-3jfp-46x4-xgfj"],"related":[],"kind":"vulnerability","state":"published","title":"yard: Possible arbitrary path traversal and file access via yard server","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA path traversal vulnerability was discovered in YARD <= 0.9.41 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.\n\nThe original patch in [GHSA-xfhh-rx56-rxcr](https://github.com/lsegal/yard/security/advisories/GHSA-xfhh-rx56-rxcr) was incorrectly applied.\n\n### Patches\n\nPlease upgrade to YARD v0.9.42 immediately if you are relying on yard server to host documentation in any untrusted environments without WEBrick and rely on `--docroot`.\n\n### Workarounds\n\nFor users who cannot upgrade, it is possible to perform path sanitization of HTTP requests at your webserver level. WEBrick, for example, can perform such sanitization by default (which you can use via yard server -s webrick), as can certain rules in your webserver configuration.","format":"markdown","source":"ghsa"},{"lang":"es","text":"YARD es una herramienta de documentación de Ruby. Antes de la versión 0.9.42, se descubrió una vulnerabilidad de salto de ruta en YARD al usar el servidor de yard para servir documentación. Este error permitiría que solicitudes HTTP no saneadas accedieran a archivos arbitrarios en la máquina de un host del servidor de yard bajo ciertas condiciones. Este problema ha sido parcheado en la versión 0.9.42.","source":"nvd"}],"published":"2026-04-17T22:21:03.000Z","modified":"2026-10-26T19:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.9.42","status":"affected"}],"vendor":"lsegal","product":"yard","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.9.42"}],"ecosystem":"RubyGems","package":"yard","purl":"pkg:gem/yard","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.9.42"}],"vendor":"yardoc","product":"yard","cpe":"cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lsegal/yard/releases/tag/v0.9.42","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41493","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lsegal/yard","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2026-41493.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-08T14:15:08.883Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41493","url":"https://www.cve.org/CVERecord?id=CVE-2026-41493","licence":"CVE Terms of Use","modified":"2026-05-08T21:27:41.408Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3jfp-46x4-xgfj","url":"https://github.com/advisories/GHSA-3jfp-46x4-xgfj","licence":"CC-BY-4.0","modified":"2026-06-09T10:55:28.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41493","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41493","licence":"Public domain","modified":"2026-10-26T19:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:20.969Z","epss":{"score":0.00388,"percentile":0.3503,"date":"2026-12-01T12:00:22.000Z"}}