What’s Vulnerable › Vulnerabilities
CVE-2026-49342: YARD static cache reads raw traversal paths before router sanitization
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-19 · updated 2026-10-25
- Weakness: CWE-22
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 products
- lsegal yard: before 0.9.44
References
- https://github.com/lsegal/yard/commit/f78c19f0dd33a407085b4ed181bb60c0aa0078b4
- https://github.com/lsegal/yard/security/advisories/GHSA-pxcc-8665-phx8
- https://github.com/lsegal/yard/security/advisories/GHSA-pxcc-8665-phx8
Get alerted when CVE-2026-49342 or the next vulnerability affects your stack