Code Extension Marketplace has a Zip Slip Path Traversal
cve-program · CVE-2026-35454
PublishedThe Code Extension Marketplace is an open-source alternative to the VS Code Marketplace. Prior to 2.4.2, Zip Slip vulnerability in coder/code-marketplace allowed a malicious VSIX file to write arbitrary files outside the extension directory. ExtractZip passed raw zip entry names to a callback that wrote files via filepath.Join with no boundary check; filepath.Join resolved .. components but did not prevent the result from escaping the base path. This vulnerability is fixed in 2.4.2.
Read the publisher's advisoryeuvd · EUVD-2026-19537
PublishedThe Code Extension Marketplace is an open-source alternative to the VS Code Marketplace. Prior to 2.4.2, Zip Slip vulnerability in coder/code-marketplace allowed a malicious VSIX file to write arbitrary files outside the extension directory. ExtractZip passed raw zip entry names to a callback that wrote files via filepath.Join with no boundary check; filepath.Join resolved .. components but did not prevent the result from escaping the base path. This vulnerability is fixed in 2.4.2.
Read the publisher's advisorynvd · CVE-2026-35454
PublishedThe Code Extension Marketplace is an open-source alternative to the VS Code Marketplace. Prior to 2.4.2, Zip Slip vulnerability in coder/code-marketplace allowed a malicious VSIX file to write arbitrary files outside the extension directory. ExtractZip passed raw zip entry names to a callback that wrote files via filepath.Join with no boundary check; filepath.Join resolved .. components but did not prevent the result from escaping the base path. This vulnerability is fixed in 2.4.2.
Read the publisher's advisoryosv · GHSA-8x9r-hvwg-c55h
Published# Zip Slip Path Traversal in coder/code-marketplace ## Summary A Zip Slip (CWE-22) vulnerability in `coder/code-marketplace` ≤ v2.4.1 allowed a malicious VSIX file to write arbitrary files outside the extension directory. `ExtractZip` passed raw zip entry names to a callback that wrote files via `filepath.Join` with no boundary check; `filepath.Join` resolved `..` components but did not prevent the result from escaping the base path. ## Root Cause `ExtractZip` passed the raw, attacker-controlled `zf.Name` to a caller-supplied callback: ```go return false, fn(zf.Name, zr) // zf.Name not sanitized ``` `AddExtension` constructed the output path with `filepath.Join` and no boundary check: ```go path := filepath.Join(dir, name) // zip loop path := filepath.Join(dir, file.RelativePath) // extra files loop ``` `filepath.Clean` resolved `..` lexically but did not confine the result to `dir`: ``` filepath.Join("/srv/ext/pub/1.0", "../../../../etc/cron.d/evil") → "/etc/cron.d/evil" ``` ## Attack Scenario An authenticated user (any upload-capable role) would submit a VSIX containing path-traversal entries. On extraction, files would land at attacker-chosen paths writable by the marketplace process, enabling persistence (cron/init injection), SSH key injection, `ld.so.preload` hijacking, or binary overwrite depending on process privileges. ## Fix Addressed in https://github.com/coder/code-marketplace/releases/tag/v2.4.2 ## Recognition Coder would like to thank [Kandlaguduru Vamsi](https://www.linkedin.com/in/vamsi-k-5419632a9/) for responsibly disclosing this issue in accordance with https://coder.com/security/policy
Read the publisher's advisoryosv · GO-2026-5270
PublishedCode Extension Marketplace: Zip Slip Path Traversal in github.com/coder/code-marketplace
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-35454 · CVE overview and exploitation status
cve-program · CVE-2026-35454
- https://github.com/coder/code-marketplace/security/advisories/GHSA-8x9r-hvwg-c55h
- https://github.com/coder/code-marketplace/releases/tag/v2.4.2
euvd · EUVD-2026-19537
- https://github.com/coder/code-marketplace/security/advisories/GHSA-8x9r-hvwg-c55h
- https://github.com/coder/code-marketplace/releases/tag/v2.4.2
nvd · CVE-2026-35454
- https://github.com/coder/code-marketplace/releases/tag/v2.4.2
- https://github.com/coder/code-marketplace/security/advisories/GHSA-8x9r-hvwg-c55h
osv · GHSA-8x9r-hvwg-c55h
- https://github.com/coder/code-marketplace/security/advisories/GHSA-8x9r-hvwg-c55h
- https://nvd.nist.gov/vuln/detail/CVE-2026-35454
- https://github.com/coder/code-marketplace/commit/988440dee05fceef8400ed725badc604dbf90792
- https://github.com/coder/code-marketplace
- https://github.com/coder/code-marketplace/releases/tag/v2.4.2
osv · GO-2026-5270
Related changes
Linked by CVE identifierNo related changes are available here.