vector-store
Audited by Socket on Jul 8, 2026
2 alerts found:
SecurityAnomalyThis module is primarily a Postgres data writer, not a visibly malicious program. However, it has two major security weaknesses: (1) a default PG connection string with hardcoded plaintext credentials, and (2) high-risk SQL injection/SQL breakage due to direct interpolation of untrusted CLI inputs into a psql -c SQL statement (including JSON metadata assembled without proper escaping). If inputs or execution context are attacker-influenced, the script could be used to tamper with database contents or disrupt operations.
No indicators of covert malware (e.g., exfiltration, reverse shells, persistence, or obfuscated payloads) are present in this snippet. The primary security concern is operational/high-impact: hardcoded database credentials in the default connection string plus direct execution of arbitrary caller-supplied SQL via psql -c with no validation. This combination makes the script risky to distribute or run in contexts where inputs/environment can be influenced or where the repository/secret could be exposed.