CVE-2026-49342: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lsegal yard
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.
AI Analysis
Technical Summary
CVE-2026-49342 is a path traversal vulnerability (CWE-22) in YARD before version 0.9.44. The static cache lookup mechanism reads the request path prior to router path normalization, enabling an attacker to craft traversal paths (e.g., '/../yard-cache-secret.html') that bypass the intended document root restrictions. This allows unauthorized reading of sibling .html files outside the static directory tree. The vulnerability is addressed in YARD version 0.9.44.
Potential Impact
An attacker can read files outside the intended static document root by exploiting the path traversal flaw, potentially exposing sensitive .html files. The vulnerability does not affect integrity or availability, only confidentiality of files accessible via crafted paths.
Mitigation Recommendations
Upgrade YARD to version 0.9.44 or later, where the path traversal issue is patched. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated but the fix is included in version 0.9.44.
CVE-2026-49342: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lsegal yard
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.
CVSS v3.1
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49342 is a path traversal vulnerability (CWE-22) in YARD before version 0.9.44. The static cache lookup mechanism reads the request path prior to router path normalization, enabling an attacker to craft traversal paths (e.g., '/../yard-cache-secret.html') that bypass the intended document root restrictions. This allows unauthorized reading of sibling .html files outside the static directory tree. The vulnerability is addressed in YARD version 0.9.44.
Potential Impact
An attacker can read files outside the intended static document root by exploiting the path traversal flaw, potentially exposing sensitive .html files. The vulnerability does not affect integrity or availability, only confidentiality of files accessible via crafted paths.
Mitigation Recommendations
Upgrade YARD to version 0.9.44 or later, where the path traversal issue is patched. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated but the fix is included in version 0.9.44.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-29T14:35:45.903Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a359d6df198dc38c12203a6
Added to database: 06/19/2026, 19:50:05 UTC
Last enriched: 06/26/2026, 21:48:38 UTC
Last updated: 08/02/2026, 19:17:59 UTC
Views: 66
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.