Intel

AIKIDO-2026-962241

yard is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 22, 2026
July 22, 2026

39

CVSS Score

Low

Path Traversal

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the yard library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you serve documentation using yard server.

Package

Versions

0.9.20 - 0.9.44

Fixed in 0.9.45

Background info

yard is vulnerable to Path Traversal in versions 0.9.20 - 0.9.44.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea