Repository navigation
v1.5.1 - Security & Stability Fixes
Security & Stability Fixes
Addresses issues identified by Cursor Bugbot code review.
Security
- WhatsApp service now localhost-only - Binds to
127.0.0.1instead of0.0.0.0- Prevents unauthorized network access to
/api/sendendpoint - Gateway handles external access with proper bearer token authentication
- Prevents unauthorized network access to
Bug Fixes
-
Fixed backslash escaping in LIKE queries -
escapeSQLnow properly escapes backslashes for SQLite LIKE patterns withESCAPE '\' -
Fixed database connection leaks - Both
queryMessagesDBandqueryWhatsAppDBnow usetry-finallywith conditional close to prevent file descriptor leaks on query errors -
Preserved error message wrapping - Database constructor errors now properly wrapped in user-friendly messages while still preventing connection leaks
Code Quality
All changes validated by Claude Code Review and Cursor Bugbot with no remaining issues.