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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | yard | no fix listed | DEBIAN-CVE-2026-49342 |
| Debian:13 | yard | no fix listed | DEBIAN-CVE-2026-49342 |
| Debian:14 | yard | 0.9.44-1 | DEBIAN-CVE-2026-49342 |
| RubyGems | yard | 0.9.44 | GHSA-pxcc-8665-phx8 |
| Ubuntu:25.10 | yard | no fix listed | UBUNTU-CVE-2026-49342 |
| Ubuntu:26.10 | yard | no fix listed | UBUNTU-CVE-2026-49342 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/lsegal/yard/security/advisories/GHSA-pxcc-8665-phx8 x_refsource_CONFIRM
- https://github.com/lsegal/yard/commit/f78c19f0dd33a407085b4ed181bb60c0aa0078b4 x_refsource_MISC