gray-matter
Warn
Audited by Socket on Aug 8, 2026
1 alert found:
AnomalyAnomalyscripts/parse.js
LOWAnomalyLOW
scripts/parse.js
No clear malware/backdoor behavior is evident in the shown code (no eval, no network activity, no OS command execution derived from user input beyond a hard-coded install). The primary security concern is supply-chain/install-time risk: if gray-matter is missing, the script runs `npm install gray-matter` at runtime (without version pinning or integrity verification) and then executes that dependency code via require. Additionally, the tool can output parsed front-matter/content to stdout, which may expose sensitive data if invoked on confidential inputs in an unsafe pipeline.
Confidence: 72%Severity: 60%
Audit Metadata