yard is vulnerable to Path Traversal
39
CVSS Score
Low
Path Traversal
YARD's yard server normalizes incoming HTTP request paths in the router and in the base command before mapping them to documentation files. The prior sanitization relies on File.cleanpath plus a leading ../ regex, which does not neutralize alternate path separators, Windows drive-letter prefixes, UNC prefixes, or rooted paths. On a host serving documentation with a configured document root, a crafted request path can escape the intended directory and read files outside it. The fix adds a centralized Server.clean_path helper that converts separators, strips drive letters and leading roots, and collapses traversal segments.
Upgrade the yard library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you serve documentation using yard server.
0.9.20 - 0.9.44
Fixed in 0.9.45yard is vulnerable to Path Traversal in versions 0.9.20 - 0.9.44.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.