{"id":"CVE-2026-35613","published":"2026-04-07T16:39:44Z","modified":"2026-04-09T16:18:16Z","title":"Path traversal in coursevault-preview due to improper base-directory boundary validation","vendor":"moritzmyrz","product":"coursevault-preview","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00146,"percentile":0.0394,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/moritzmyrz/coursevault-preview/security/advisories/GHSA-9h9m-rr67-9jpg","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.4,"factors":[{"name":"EPSS percentile","points":0.79},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"moritzmyrz","affectedVersions":[{"vendor":"moritzmyrz","product":"coursevault-preview","versions":["< 0.1.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-09T15:08:47.329674Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"coursevault-preview","vulnerableRanges":["<0.1.1"],"patched":["0.1.1"],"from":["GHSA-9h9m-rr67-9jpg"],"provenance":"source"}],"summary":{"text":"The coursevault-preview utility from moritzmyrz contains a path traversal flaw in its resolveSafe function, where the base-directory check uses a string prefix comparison that does not enforce a true directory boundary. An attacker who controls the relativePath argument passed to affected CoursevaultPreview methods can read files outside the configured baseDir when a sibling directory shares the same name prefix, and this requires local access with low attack complexity and no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:36Z"},"euvd":{"id":"EUVD-2026-19790","exploited":false,"provenance":"source"}}