CVE-2026-49342 Details
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.
A path traversal vulnerability has been identified in YARD, a documentation generation tool for Ruby. Prior to version 0.9.44, YARD's static cache lookup processed request paths before the router had a chance to clean them up. This flaw allowed, when a server had a document root configured, the possibility to traverse directories and access sibling .html files outside the intended static directory. The vulnerability arises because the cache check does not sanitize paths for parent directory components, enabling the retrieval of arbitrary .html files from the file system.
Users are advised to update YARD to version 0.9.44 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 19, 2026CISA-ADP
Assessed Jun 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/lsegal/yard/security/advisories/GHSA-pxcc-8665-phx8 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/lsegal/yard/commit/f78c19f0dd33a407085b4ed181bb60c0aa0078b4 | [email protected] | Source CodeVendor |
| https://github.com/lsegal/yard/security/advisories/GHSA-pxcc-8665-phx8 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| YARD | < 0.9.44 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 22, 2026 | CVE Modified | CISA-ADP |
| Jun 19, 2026 | New CVE Received | [email protected] |
Volerion