Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. coursevault-preview
  4. ›
  5. CVE-2026-35613

CVE-2026-35613: coursevault-preview has a path traversal due to improper base-directory boundary validation

April 8, 2026

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.

References

  • github.com/advisories/GHSA-9h9m-rr67-9jpg
  • github.com/moritzmyrz/coursevault-preview
  • github.com/moritzmyrz/coursevault-preview/security/advisories/GHSA-9h9m-rr67-9jpg
  • nvd.nist.gov/vuln/detail/CVE-2026-35613

Code Behaviors & Features

Detect and mitigate CVE-2026-35613 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.1.1

Fixed versions

  • 0.1.1

Solution

Upgrade to version 0.1.1 or above.

Impact 5.1 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/coursevault-preview/CVE-2026-35613.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:18 +0000.