@google/clasp vulnerable to unsafe path traversal cloning or pulling a malicious script
Impact
Allows an attacker to perform a "Path Traversal" attack to modify files outside the projects directory, potentially allowing for running attacker code on the developer's machine.
Patches
Fixed in version 3.2.0
Workarounds
- Only clone or pull scripts from trusted sources
- Review the output of the
pullandclonecommands to verify only expected project files are modified
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | @google/clasp | < 3.2.0 | 3.2.0 |
References
- https://github.com/google/clasp/security/advisories/GHSA-hqjg-pww4-pcgq
- https://nvd.nist.gov/vuln/detail/CVE-2026-4092
- https://github.com/google/clasp/pull/1109
- https://github.com/google/clasp/commit/ba6bd666fe74de54950122b5d92ecf1dcc02a9d3
- https://github.com/google/clasp
- https://github.com/google/clasp/releases/tag/v3.2.0
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N- Weakness (CWE)
CWE-22- Platform
- npm
- Package
@google/clasp- Disclosed
- 13.03.2026
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-hqjg-pww4-pcgq - CC BY 4.0
Vulnerability history: @google/clasp
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.