CVE-2026-35613: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in moritzmyrz coursevault-preview
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.
AI Analysis
Technical Summary
The path traversal vulnerability (CWE-22) in moritzmyrz coursevault-preview affects versions before 0.1.1. The resolveSafe utility attempts to restrict file access to a configured base directory by checking if the normalized path starts with the base directory string. However, this check is insufficient because it can be bypassed when a sibling directory shares the same prefix as the base directory, allowing an attacker to read arbitrary files outside the intended directory. This vulnerability has a CVSS 3.1 score of 5.1, indicating medium severity. No official patch link or vendor advisory is provided, but the vulnerability is fixed in version 0.1.1.
Potential Impact
An attacker who can control the relativePath argument may read files outside the intended base directory, potentially exposing sensitive information. The vulnerability does not affect integrity or availability, only confidentiality. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade coursevault-preview to version 0.1.1 or later, where this path traversal vulnerability is fixed. Since no official patch link or advisory is provided, verify the version update from the vendor or source repository before deployment. Patch status is not yet confirmed via vendor advisory; check the vendor's official channels for current remediation guidance.
CVE-2026-35613: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in moritzmyrz coursevault-preview
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The path traversal vulnerability (CWE-22) in moritzmyrz coursevault-preview affects versions before 0.1.1. The resolveSafe utility attempts to restrict file access to a configured base directory by checking if the normalized path starts with the base directory string. However, this check is insufficient because it can be bypassed when a sibling directory shares the same prefix as the base directory, allowing an attacker to read arbitrary files outside the intended directory. This vulnerability has a CVSS 3.1 score of 5.1, indicating medium severity. No official patch link or vendor advisory is provided, but the vulnerability is fixed in version 0.1.1.
Potential Impact
An attacker who can control the relativePath argument may read files outside the intended base directory, potentially exposing sensitive information. The vulnerability does not affect integrity or availability, only confidentiality. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade coursevault-preview to version 0.1.1 or later, where this path traversal vulnerability is fixed. Since no official patch link or advisory is provided, verify the version update from the vendor or source repository before deployment. Patch status is not yet confirmed via vendor advisory; check the vendor's official channels for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-03T21:25:12.163Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d534e5aaed68159a357dd1
Added to database: 4/7/2026, 4:46:29 PM
Last enriched: 4/15/2026, 12:24:57 PM
Last updated: 5/22/2026, 1:13:27 PM
Views: 73
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.