x-writing
Warn
Audited by Socket on Sep 21, 2026
1 alert found:
AnomalyAnomalyscripts/fetch-notes.sh
LOWAnomalyLOW
scripts/fetch-notes.sh
The code is a legitimate macOS Notes retrieval utility, but it has an AppleScript injection vulnerability because command-line and environment-controlled values are concatenated into osascript source without escaping. It also executes `.env.local` as arbitrary Bash code and exposes note contents through stdout. No direct malware or exfiltration behavior is present in the supplied fragment. Arguments should be passed through a safe mechanism or escaped, the recent count should be strictly validated, and configuration should not be sourced as unrestricted shell code.
Confidence: 97%Severity: 63%
Audit Metadata