{"answers":{"affected":"2 open source packages ship an affected version, including coursevault-preview. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-35613 in the wild and no public exploit code.","fix":"Upgrade coursevault-preview to 0.1.1 or later.","what":"CVE-2026-35613 is a medium-severity path traversal vulnerability in moritzmyrz coursevault-preview, published on 7 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-35613 and fix it if it is affected.\n\nWhat it is: CVE-2026-35613 is a medium-severity path traversal vulnerability in moritzmyrz coursevault-preview, published on 7 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-35613 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- coursevault-preview (npm): affected all versions; fixed in 0.1.1\n- coursevault-preview (npm): affected all versions; fixed in 0.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-35613/ (Markdown: https://insights.sbomify.com/CVE-2026-35613/index.md)","id":"CVE-2026-35613","markdown":"https://insights.sbomify.com/CVE-2026-35613/index.md","name":"CVE-2026-35613","record":{"aliases":["GHSA-9h9m-rr67-9jpg"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"npm course preview library","requires_auth":"none","summary":"An attacker can read files outside the configured directory by exploiting a path traversal flaw in the coursevault-preview library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"coursevault-preview","vendor":"moritzmyrz"}],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Path traversal in coursevault-preview due to improper base-directory boundary validation","id":"CVE-2026-35613","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Frappe has a SQL injection in bulk_update","id":"CVE-2026-35614"},"packages":[{"ecosystem":"npm","fixed":["0.1.1"],"introduced":["0"],"last_affected":[],"package":"coursevault-preview","purl":null,"source":"GHSA-9h9m-rr67-9jpg"},{"ecosystem":"npm","fixed":["0.1.1"],"introduced":["0"],"last_affected":[],"package":"coursevault-preview","purl":"pkg:npm/coursevault-preview","source":"GHSA-9h9m-rr67-9jpg"}],"prev":{"headline":"Addressable has a Regular Expression Denial of Service in Addressable templates","id":"CVE-2026-35611"},"products":["coursevault-preview"],"published":"2026-04-07","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-09","vendors":["moritzmyrz"]},"summary":"An attacker can read files outside the configured directory by exploiting a path traversal flaw in the coursevault-preview library.","url":"https://insights.sbomify.com/CVE-2026-35613/"}