css-token-use-validator
Warn
Audited by Socket on May 18, 2026
1 alert found:
SecuritySecurityscripts/validator.js
MEDIUMSecurityMEDIUM
scripts/validator.js
This module is primarily a local CSS/token validation CLI with no inherent signs of data theft, persistence, or network exfiltration in its parsing and reporting logic. However, it contains a severe host-impact security flaw: it uses execSync to run bash -c with direct interpolation of untrusted CLI glob arguments (--tokens/--css), enabling command injection and arbitrary command execution when an attacker can influence those arguments (e.g., CI variables or compromised tooling). Overall, treat this dependency as unsafe to run with untrusted inputs; the security review should prioritize eliminating the shell invocation or safely quoting/escaping and using a non-shell globbing approach.
Confidence: 86%Severity: 87%
Audit Metadata