CVE-2026-35613CWE-22

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

Medium · published April 7, 2026

CVSS v3.1
5.1
EPSS
0%
Percentile
3.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.1 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00140 · 3.1th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-04-07T16:39Z
EPSS history
Timeline
  • 07 APR 16:39Z
    Path traversal in coursevault-preview due to improper base-directory boundary validation
    cvelistv5