# CVE-2026-35613: Path traversal in coursevault-preview due to improper base-directory boundary validation

- Severity: Medium 5.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-07T16:39:44.237Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-9h9m-rr67-9jpg
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- moritzmyrz coursevault-preview: < 0.1.1; before 0.1.1
- coursevault-preview (npm): before 0.1.1

## Every score

- GitHub_M: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.1 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/moritzmyrz/coursevault-preview/security/advisories/GHSA-9h9m-rr67-9jpg> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35613> (advisory)
- <https://github.com/moritzmyrz/coursevault-preview> (package)

## Sources

- CVE List: [CVE-2026-35613](https://www.cve.org/CVERecord?id=CVE-2026-35613), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-9h9m-rr67-9jpg](https://github.com/advisories/GHSA-9h9m-rr67-9jpg), CC-BY-4.0, modified 2026-04-08
- NVD: [CVE-2026-35613](https://nvd.nist.gov/vuln/detail/CVE-2026-35613), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-35613 · Whole record: https://cve.day/CVE-2026-35613.json · Rebuilt by cve.day 2026-11-25T22:59:18.136Z
