Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents moderate real-world risk. The CVSS v3.1 vector (AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) indicates local attack vector with high complexity, no privileges required, and high confidentiality impact-consistent with a file disclosure vulnerability. The AC:H (high complexity) rating reflects the requirement for a specific directory structure (sibling directories with matching prefixes) and careful path construction, which reduces the practical likelihood of exploitation. However, confidentiality is fully compromised (C:H), meaning successful attacks expose file contents without limit. The attack requires no user interaction and no authentication. Since this is a development tool (preview utility for course materials), exposure is limited to systems where coursevault-preview is deployed, likely in educational or institutional environments with controlled access. No EPSS score, KEV confirmation, or public proof-of-concept data is provided in the input, so this appears to be a responsibly disclosed vulnerability with a published fix rather than actively weaponized. The moderate CVSS score combined with high attack complexity and limited deployment scope suggests this is a real but not critical priority-organizations using this package should update promptly, but this is not an emergency-level threat. |
| Exploit ScenarioDerived | An attacker with local system access and knowledge of the coursevault-preview installation identifies that the configured baseDir is '/opt/courses' and a sibling directory '/opt/courses_backup' exists on the system. By crafting a relativePath argument containing traversal sequences like '../courses_backup/../../../etc/passwd', the attacker bypasses the flawed startsWith() check, which matches the normalized path against '/opt/courses'. The application then inadvertently reads and returns sensitive files such as system password files or private keys, exfiltrating data without requiring authentication or user interaction. Exploitation requires understanding the target directory structure, but proof-of-concept code would likely be simple string manipulation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 07, 2026
Path traversal in coursevault-preview versions before 0.1.1 allows local attackers without authentication to read arbitrary files outside the configured base directory by exploiting a flawed boundary check in the resolveSafe utility. The vulnerability exists because the code uses String.prototype.startsWith() to validate normalized paths, which fails to enforce proper directory boundaries when sibling directories share the same string prefix. This enables disclosure of sensitive files on systems where the application is installed.
RemediationAI
Vendor-released patch: upgrade to coursevault-preview version 0.1.1 or later, which corrects the path traversal flaw by implementing proper directory boundary enforcement in the resolveSafe utility. Update your package via npm using 'npm install coursevault-preview@latest' or by explicitly specifying version 0.1.1 or higher in your package.json. If immediate upgrade is not feasible, review application deployments to ensure coursevault-preview operates with minimal file system exposure, restrict the baseDir to a dedicated directory tree without sibling directories containing sensitive data, and monitor for any unauthorized file access attempts in application logs. Consult the GitHub Security Advisory (https://github.com/moritzmyrz/coursevault-preview/security/advisories/GHSA-9h9m-rr67-9jpg) for additional context and patching timeline details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
coursevault-preview is a Node.js utility for safely previewing course material files from a configured directory. The vulnerability resides in the resolveSafe path normalization function, which implements CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The root cause is insufficient directory boundary enforcement: the code normalizes the provided relativePath and then checks if it starts with the baseDir string using startsWith(). This approach fails because string prefix matching does not account for directory separators. For example, if baseDir is '/course' and a sibling directory '/course_backup' exists, an attacker can construct a path like '../course_backup/../../../etc/passwd' that, after normalization, may begin with the '/course' prefix but actually reference files outside the intended boundary. The affected product is identified by CPE cpe:2.3:a:moritzmyrz:coursevault-preview:*:*:*:*:*:*:*:*, indicating all versions prior to 0.1.1 are vulnerable.
Know when Coursevault Preview gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-19790
GHSA-9h9m-rr67-9jpg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB