CVE-2026-35613 Path traversal in coursevault-preview due to improper base-directory boundary validation
An attacker can read files outside the configured directory by exploiting a path traversal flaw in the coursevault-preview library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-35613?
CVE-2026-35613 is a medium-severity path traversal vulnerability in moritzmyrz coursevault-preview, published on 7 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-35613?
2 open source packages ship an affected version, including coursevault-preview. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
coursevault-preview npm | All versions | 0.1.1 |
coursevault-preview npm | All versions | 0.1.1 |
Products include Moritzmyrz Coursevault-Preview.
How do I fix CVE-2026-35613?
Upgrade coursevault-preview to 0.1.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-35613 being exploited?
There is no known exploitation of CVE-2026-35613 in the wild and no public exploit code.
Sources
Also known as GHSA-9h9m-rr67-9jpg.