Skip to content
Heist/ feed
Back to feed
Medium

Path traversal in coursevault-preview due to improper base-directory boundary validation

Type: advisorySources: OSV

coursevault-preview is a utility for previewing course material files from a configured directory. coursevault-preview versions prior to 0.1.1 contain a path traversal vulnerability in the resolveSafe utility. The boundary check used String.prototype.startsWith(baseDir) on a normalized path, which does not enforce a directory boundary. An attacker who controls the relativePath argument to affected CoursevaultPreview methods may be able to read files outside the configured baseDir when a sibling directory exists whose name shares the same string prefix. This vulnerability is fixed in 0.1.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-35613
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 03:21 UTC · Revision 1

Source evidence

Path traversal in coursevault-preview due to improper base-directory boundary validation

core-osv · Original source

Published 7 Apr 2026, 16:39 UTC

coursevault-preview is a utility for previewing course material files from a configured directory. coursevault-preview versions prior to 0.1.1 contain a path traversal vulnerability in the resolveSafe utility. The boundary check used String.prototype.startsWith(baseDir) on a normalized path, which does not enforce a directory boundary. An attacker who controls the relativePath argument to affected CoursevaultPreview methods may be able to read files outside the configured baseDir when a sibling directory exists whose name shares the same string prefix. This vulnerability is fixed in 0.1.1.

osv:CVE-2026-35613
Complete source record
{
  "id": "719dbe5742ba797d9aa87430dbd777b65d4eea3e1a282e1c44d6f4beae4bd171",
  "url": "https://osv.dev/vulnerability/CVE-2026-35613",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Path traversal in coursevault-preview due to improper base-directory boundary validation",
    "summary": "coursevault-preview is a utility for previewing course material files from a configured directory. coursevault-preview versions prior to 0.1.1 contain a path traversal vulnerability in the resolveSafe utility. The boundary check used String.prototype.startsWith(baseDir) on a normalized path, which does not enforce a directory boundary. An attacker who controls the relativePath argument to affected CoursevaultPreview methods may be able to read files outside the configured baseDir when a sibling directory exists whose name shares the same string prefix. This vulnerability is fixed in 0.1.1.",
    "evidence": "osv:CVE-2026-35613",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-35613",
      "aliases": [
        "CVE-2026-35613",
        "GHSA-9h9m-rr67-9jpg"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moritzmyrz/coursevault-preview",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c8e82ea68fe45e5eff4ec47c565bd4dfd32da41e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.1.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:moritzmyrz:coursevault-preview:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.1.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35613.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.987233231Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35613.json",
        "https://github.com/moritzmyrz/coursevault-preview/security/advisories/GHSA-9h9m-rr67-9jpg",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-35613"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35613.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-35613",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 500000,
  "published_at": "2026-04-07T16:39:44.237+00:00"
}