ADVISORIES

GitHub Advisory Database

GHSA-hqjg-pww4-pcgq

@google/clasp vulnerable to unsafe path traversal cloning or pulling a malicious script

Details

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 pull and clone commands to verify only expected project files are modified

Affected packages

EcosystemPackageAffected versions
npm@google/clasp
All versions before 3.2.0 (fixed in 3.2.0)

References