Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. yard
  4. ›
  5. CVE-2026-41493

CVE-2026-41493: yard: Possible arbitrary path traversal and file access via yard server

April 17, 2026 (updated May 29, 2026)

A path traversal vulnerability was discovered in YARD <= 0.9.41 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.

The original patch in GHSA-xfhh-rx56-rxcr was incorrectly applied.

References

  • github.com/advisories/GHSA-3jfp-46x4-xgfj
  • github.com/lsegal/yard/releases/tag/v0.9.42
  • github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/yard/CVE-2026-41493.yml
  • nvd.nist.gov/vuln/detail/CVE-2026-41493

Code Behaviors & Features

Detect and mitigate CVE-2026-41493 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.9.42

Fixed versions

  • 0.9.42

Solution

Upgrade to version 0.9.42 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

gem/yard/CVE-2026-41493.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:52 +0000.