CVE-2026-41493: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lsegal yard
A path traversal vulnerability (CWE-22) exists in versions of the Ruby documentation tool YARD prior to 0. 9. 42. When using the 'yard server' feature to serve documentation, unsanitized HTTP requests can potentially access arbitrary files on the host machine. This vulnerability has been addressed and 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
A path traversal vulnerability (CWE-22) exists in versions of the Ruby documentation tool YARD prior to 0. 9. 42. When using the 'yard server' feature to serve documentation, unsanitized HTTP requests can potentially access arbitrary files on the host machine. This vulnerability has been addressed and patched in version 0. 9. 42.
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: 5/8/2026, 1:21:30 PM
Last enriched: 5/8/2026, 1:37:09 PM
Last updated: 5/8/2026, 2:31:45 PM
Views: 2
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.