{"id":"CVE-2026-86542","state":"PUBLISHED","title":"knowns before 0.30.0 Path Traversal via Import Name","description":"knowns before 0.30.0 fails to validate import names in the import routes, allowing unauthenticated attackers to write files outside the imports directory. Attackers can supply traversal sequences in the name parameter to escape the imports directory and overwrite arbitrary files writable by the server process.","publishedAt":"2026-09-07T23:03:20.058Z","updatedAt":"2026-09-24T14:21:26.008Z","severity":{"score":8.8,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["knowns-dev knowns"],"affected":[{"vendor":"knowns-dev","product":"knowns","packageURL":"pkg:npm/knowns","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.30.0","versionType":"semver"},{"version":"0.30.0","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/knowns-dev/knowns/security/advisories/GHSA-wh3c-v55g-qfg8","https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L519-L551","https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L376-L420","https://github.com/knowns-dev/knowns/commit/d3989829fb5095666d23d005b2f78a082832a396","https://github.com/knowns-dev/knowns/releases/tag/v0.30.0","https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-import-name"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/86xxx/CVE-2026-86542.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-86542","state":"PUBLISHED","datePublished":"2026-09-07T23:03:20.058Z","dateUpdated":"2026-09-24T14:21:26.008Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-09-07T22:18:52.898Z"},"containers":{"cna":{"title":"knowns before 0.30.0 Path Traversal via Import Name","descriptions":[{"lang":"en","value":"knowns before 0.30.0 fails to validate import names in the import routes, allowing unauthenticated attackers to write files outside the imports directory. Attackers can supply traversal sequences in the name parameter to escape the imports directory and overwrite arbitrary files writable by the server process."}],"affected":[{"vendor":"knowns-dev","product":"knowns","packageURL":"pkg:npm/knowns","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.30.0","versionType":"semver"},{"version":"0.30.0","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/knowns-dev/knowns/security/advisories/GHSA-wh3c-v55g-qfg8","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-wh3c-v55g-qfg8)"},{"url":"https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L519-L551","tags":["technical-description"],"name":"Import add builds the destination from the caller-supplied name (v0.29.1)"},{"url":"https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L376-L420","tags":["technical-description"],"name":"gitCloneImport writes cloned files beneath the unvalidated name (v0.29.1)"},{"url":"https://github.com/knowns-dev/knowns/commit/d3989829fb5095666d23d005b2f78a082832a396","tags":["patch"],"name":"knowns fix commit d3989829fb50"},{"url":"https://github.com/knowns-dev/knowns/releases/tag/v0.30.0","tags":["release-notes"],"name":"knowns v0.30.0 Release Notes"},{"url":"https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-import-name","name":"VulnCheck Advisory: knowns before 0.30.0 Path Traversal via Import Name","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.8,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-24T14:21:26.008Z"},"datePublic":"2026-08-16T00:00:00.000Z","credits":[{"lang":"en","value":"Tong Hoang Gia (uziii2208)","type":"finder"},{"lang":"en","value":"Nguyen Huy Hoang (hoanggxyuuki)","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-08T12:43:09.777150Z","id":"CVE-2026-86542","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-08T12:43:22.850Z"}}]}}}