Path Traversal in Moritzmyrz Coursevault-Preview
CVE-2026-35613
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.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.001 (3.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.1 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
Affected products
- Moritzmyrz Coursevault-preview — versions < 0.1.1
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-35613?
- CVE-2026-35613 is a medium-severity vulnerability in Moritzmyrz Coursevault-Preview, classified under Path Traversal. CVSS score: 5.1/10. Published 2026-04-07.
- How severe is CVE-2026-35613?
- Medium severity. CVSS v3 base score is 5.1 out of 10.