@google/clasp is vulnerable to Path Traversal
62
Medium Risk
Affected versions of this package allow a path traversal vulnerability in the fetchRemote method, where unvalidated remote filenames could escape the intended project directory and write arbitrary files on the local filesystem. An attacker controlling a remote Apps Script project could craft filenames containing traversal sequences (e.g., ../../) so that, during a clasp pull or clasp clone, malicious files are written outside the project boundary, potentially overwriting sensitive files or planting executable code, leading to local arbitrary file write and a viable Remote Code Execution (RCE) vector.
You are affected if you are using a version that falls within the vulnerable range.
@google/clasp is vulnerable to Path Traversal in versions 3.0.0 - 3.1.3.
Upgrade the @google/clasp library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant