CVE-2026-41493
yard: Possible arbitrary path traversal and file access via yard server
Reported by github_m · Published May 8, 2026
yard is fixed in 0.9.42 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| yard | RubyGems | 0.9.42 |
| yard | yardoc | 0.9.42 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lsegal | yard | < 0.9.42 |
| RubyGems | yard | 0 |
| lsegal | yard | 0 |
Timeline
- May 8, 2026 CVE Published
- May 8, 2026 Security Advisory (11 in total, the first dated here)
- May 8, 2026 CVE Updated
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (10 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-41493
vulnetix vdb fixes CVE-2026-41493
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-41493/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj x_refsource_CONFIRM
- https://github.com/lsegal/yard/releases/tag/v0.9.42 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-41493 advisory
- https://github.com/advisories/GHSA-3jfp-46x4-xgfj advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2026-41493.yml advisory
- https://github.com/lsegal/yard url