Skip to main content

YARD CVE-2026-41493

| EUVDEUVD-2026-28554 MEDIUM
Path Traversal (CWE-22)
2026-05-08 GitHub_M
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted HTTP request with path traversal
  2. Delivery
    Parse unsanitized docroot parameter
  3. Exploit
    Bypass directory restrictions
  4. Execution
    Access arbitrary file on filesystem
  5. Impact
    Return file contents to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires SPECIFIC conditions: yard server must be actively running with the --docroot parameter set to define a custom document root directory. The vulnerability does NOT occur when using the default WEBrick server backend (which sanitizes paths automatically). Exploitation requires network access to the yard server port (typically localhost:8808 unless explicitly exposed). The attacker does not require authentication; the vulnerability is exploitable by any network-accessible client sending crafted HTTP requests. Non-default configurations or running yard server in untrusted environments without additional web server protections are the primary risk factors. Default installations using only 'yard server' without --docroot are not vulnerable.

Impact

CVSS v4.0 score of 6.9 with AV:N (network-accessible) and AC:L (low complexity) indicates a reasonably accessible attack vector. However, the impact is limited to confidentiality (VC:L - low confidentiality impact), with no integrity or availability impact, suggesting information disclosure rather than code execution. The vulnerability requires yard server to be actively running with the --docroot parameter configured in an untrusted network environment, which is not a default deployment scenario. EPSS score and KEV status were not provided, so real-world exploitation likelihood cannot be definitively assessed. The patch availability (version 0.9.42 released) and vendor recommendation to upgrade immediately suggest the vendor considers this a legitimate risk in certain deployments. This is a targeted vulnerability affecting developers or organizations using YARD for internal documentation hosting; widespread exploitation is unlikely unless yard server instances are exposed to untrusted networks without additional web server protections.

Exploit ScenarioDerived

An attacker discovers a YARD documentation server running on an internal or exposed network using yard server with --docroot configured. The attacker crafts HTTP requests containing path traversal sequences (e.g., GET /../../etc/passwd or GET /%2e%2e/sensitive_file.txt) targeting the server. If the server is not using WEBrick and the path sanitization patch is not applied, the server processes the unsanitized request and returns arbitrary files from the host system, allowing the attacker to read sensitive configuration files, source code, or other documentation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

Path traversal vulnerability in YARD prior to version 0.9.42 allows remote attackers to access arbitrary files on a server running yard server with unsanitized HTTP requests when using the --docroot flag. The vulnerability affects the documentation serving functionality and has been patched in version 0.9.42. No public exploit code or active exploitation has been identified at the time of analysis.

RemediationAI

Upgrade YARD to version 0.9.42 or later immediately. The patched version fixes the path traversal vulnerability in the document_root handling. For users unable to upgrade immediately, two workarounds are available: First, use WEBrick as the server backend by running 'yard server -s webrick', which performs automatic path sanitization on HTTP requests. Second, implement path sanitization at the web server level (e.g., nginx, Apache) by adding rules that reject or neutralize path traversal sequences in HTTP requests. These workarounds mitigate the risk but do not address the underlying code defect; upgrading to 0.9.42 is the definitive fix. The upgrade has minimal side effects, as it is primarily a security fix with only minor UI/UX improvements included in the release.

Affected VersionsENISA

yard < 0.9.42

Affected Packages

rubygems yard fix: 0.9.42

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in rubygems

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

YARD is a Ruby documentation generation and serving tool. The vulnerability exists in the yard server component, which uses HTTP request handling to serve pre-generated documentation files. The root cause is improper input validation of the document_root (--docroot) parameter, classified as CWE-22 (Path Traversal). When yard server processes HTTP requests without proper sanitization, an attacker can craft requests containing path traversal sequences (such as ../ or absolute paths) to bypass intended directory restrictions and access files outside the intended documentation directory. The vulnerability is specific to non-WEBrick server configurations, as WEBrick performs path sanitization by default.

Know when Yard gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
May 08, 2026 - 14:02 EUVD
CVE Published
May 08, 2026 - 13:13 nvd
MEDIUM 6.9

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy