Skip to content
Heist/ feed
Back to feed
Medium

yard: Possible arbitrary path traversal and file access via yard server

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-41493
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 23:58 UTC · Revision 1

Source evidence

yard: Possible arbitrary path traversal and file access via yard server

core-osv · Original source

Published 8 May 2026, 13:13 UTC

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.

osv:CVE-2026-41493
Complete source record
{
  "id": "7832ded0d607baea2c024e4a5efb57afed8c5b0fa7856ef2906b81e65725fa32",
  "url": "https://osv.dev/vulnerability/CVE-2026-41493",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "yard: Possible arbitrary path traversal and file access via yard server",
    "summary": "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.",
    "evidence": "osv:CVE-2026-41493",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-41493",
      "aliases": [
        "CVE-2026-41493",
        "GHSA-3jfp-46x4-xgfj"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lsegal/yard",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b13dddc40246076e090e3e8072f27f87f7d73364"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.9.42"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b13dddc40246076e090e3e8072f27f87f7d73364"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.9.42"
                  },
                  {
                    "cpe": "cpe:2.3:a:yardoc:yard:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.9.42"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.9.41",
            "v0.9.40",
            "v0.9.39",
            "v0.9.38",
            "v0.9.37",
            "v0.9.36",
            "v0.9.35",
            "v0.9.34",
            "v0.9.33",
            "v0.9.32",
            "v0.9.31",
            "v0.9.30",
            "v0.9.29",
            "v0.9.28",
            "v0.9.27",
            "v0.9.26",
            "v0.9.25",
            "v0.9.24",
            "v0.9.23",
            "v0.9.22",
            "v0.9.21",
            "v0.9.20",
            "v0.9.19",
            "v0.9.17",
            "v0.9.16",
            "v0.9.15",
            "v0.9.14",
            "v0.9.13",
            "v0.9.12",
            "v0.9.11",
            "v0.9.10",
            "v0.9.9",
            "v0.9.8",
            "v0.9.7",
            "v0.9.6",
            "v0.9.5",
            "v0.9.4",
            "v0.9.3",
            "v0.9.2",
            "v0.9.1",
            "v0.9.0",
            "v0.8.7.6",
            "v0.8.7.5",
            "v0.8.7.4",
            "v0.8.7.3",
            "v0.8.7.2",
            "v0.8.7.1",
            "v0.8.7",
            "v0.8.6.1",
            "v0.8.6.2",
            "v0.8.6",
            "v0.8.5.2",
            "v0.8.5.1",
            "v0.8.5",
            "v0.8.4.1",
            "v0.8.4",
            "v0.8.3",
            "v0.8.2.1",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0",
            "v0.7.4",
            "v0.7.3",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.8",
            "v0.6.7",
            "v0.6.6",
            "v0.6.5",
            "v0.6.4",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "v0.5.8",
            "v0.5.7",
            "v0.5.6",
            "v0.5.5",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.0",
            "v0.2.3.2",
            "v0.2.3.1",
            "v0.2.3",
            "v0.2.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41493.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.430300099Z",
      "provider": "osv",
      "references": [
        "https://github.com/lsegal/yard/releases/tag/v0.9.42",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41493.json",
        "https://github.com/lsegal/yard/security/advisories/GHSA-3jfp-46x4-xgfj",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-41493"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41493.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-41493",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513279,
  "published_at": "2026-05-08T13:13:49.232+00:00"
}