CVE-2026-41493 yard: Possible arbitrary path traversal and file access via yard server

Medium 6.9 Published Updated

Attackers can access arbitrary files on the host machine when using the YARD server to serve documentation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-41493?

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.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2026-41493?

2 open source packages ship an affected version, including yard. It affects 1 product.

PackageAffectedFixed in
yard RubyGemsAll versions0.9.42
yard RubyGemsAll versions0.9.42

Products include Yardoc Yard.

How do I fix CVE-2026-41493?

Upgrade yard to 0.9.42 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-41493 being exploited?

There is no known exploitation of CVE-2026-41493 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-41493, GHSA-3jfp-46x4-xgfj, OESA-2026-2205, OESA-2026-2206, OESA-2026-2207, OESA-2026-2208 and 2 more.

Is CVE-2026-41493 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free