Vulnerability · Published Jun 19, 2026 · Assigned by GitHub_M

CVE-2026-49342YARD static cache reads raw traversal paths before router sanitization

Medium 5.3

In plain English

A medium-severity path traversal in yard from lsegal. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.3%top 73.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

YARD is a documentation generation tool for the Ruby programming language. Prior to version 0.9.44, YARD's static cache lookup reads a request path before the router's path cleanup runs. When a server is configured with a document root, a traversal path such as `/../yard-cache-secret.html` is joined against that root and can return a readable sibling `.html` file outside the intended static tree. Version 0.9.44 patches the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12yardno fix listedDEBIAN-CVE-2026-49342
Debian:13yardno fix listedDEBIAN-CVE-2026-49342
Debian:14yard0.9.44-1DEBIAN-CVE-2026-49342
RubyGemsyard0.9.44GHSA-pxcc-8665-phx8
Ubuntu:25.10yardno fix listedUBUNTU-CVE-2026-49342
Ubuntu:26.10yardno fix listedUBUNTU-CVE-2026-49342

Affected products (as reported)

VendorProductVersions
lsegal yard < 0.9.44

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References