CVE-2026-41493: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lsegal yard
YARD is a Ruby Documentation tool. Prior to version 0.9.42, a path traversal vulnerability was discovered in YARD when using yard server to serve documentation. This bug would allow unsanitized HTTP requests to access arbitrary files on the machine of a yard server host under certain conditions. This issue has been patched in version 0.9.42.
AI Analysis
Technical Summary
CVE-2026-41493 describes a path traversal vulnerability in the YARD Ruby documentation tool before version 0.9.42. The flaw occurs in the 'yard server' component, which serves documentation over HTTP. Due to insufficient sanitization of HTTP request paths, an attacker can craft requests that traverse directories and access files outside the intended documentation directory. This could lead to unauthorized disclosure of sensitive files on the server hosting the yard server. The vulnerability has a CVSS 4.0 base score of 6.9, indicating a medium severity level. The issue was fixed in YARD version 0.9.42.
Potential Impact
Exploitation of this vulnerability allows an unauthenticated remote attacker to read arbitrary files on the server running the yard server, potentially exposing sensitive information. There is no indication of privilege escalation or code execution. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade YARD to version 0.9.42 or later, where this path traversal vulnerability has been patched. Since this is a self-hosted tool, users must apply the update themselves. Patch status is confirmed by the vendor advisory stating the issue is fixed in 0.9.42.
CVE-2026-41493: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lsegal yard
Description
YARD is a Ruby Documentation tool. Prior to version 0.9.42, a path traversal vulnerability was discovered in YARD when using yard server to serve documentation. This bug would allow unsanitized HTTP requests to access arbitrary files on the machine of a yard server host under certain conditions. This issue has been patched in version 0.9.42.
CVSS v4.0
Score 6.9medium
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-41493 describes a path traversal vulnerability in the YARD Ruby documentation tool before version 0.9.42. The flaw occurs in the 'yard server' component, which serves documentation over HTTP. Due to insufficient sanitization of HTTP request paths, an attacker can craft requests that traverse directories and access files outside the intended documentation directory. This could lead to unauthorized disclosure of sensitive files on the server hosting the yard server. The vulnerability has a CVSS 4.0 base score of 6.9, indicating a medium severity level. The issue was fixed in YARD version 0.9.42.
Potential Impact
Exploitation of this vulnerability allows an unauthenticated remote attacker to read arbitrary files on the server running the yard server, potentially exposing sensitive information. There is no indication of privilege escalation or code execution. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade YARD to version 0.9.42 or later, where this path traversal vulnerability has been patched. Since this is a self-hosted tool, users must apply the update themselves. Patch status is confirmed by the vendor advisory stating the issue is fixed in 0.9.42.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-20T16:14:19.008Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fde35acbff5d8610d89554
Added to database: 05/08/2026, 13:21:30 UTC
Last enriched: 05/08/2026, 13:37:09 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 99
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.