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 April 27, 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
  • github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj
  • 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. Learn more about Dependency Scanning →

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 Sat, 09 May 2026 12:18:20 +0000.