# Empty Catch Block - ID: javascript-empty-catch-block - Severity: MEDIUM - CWE: CWE-1069 (CWE-1069) - Languages: JavaScript, TypeScript - Frameworks: nodejs, express, fastify, nextjs, koa, hapi, nestjs ## Description Detects empty catch blocks that silently swallow exceptions without any error handling, logging, or recovery logic. Empty catch blocks hide errors and make debugging extremely difficult. They can mask security issues, data corruption, and system failures. ## Detection Message Empty catch block at {location} silently swallows exceptions ## Remediation Add proper error handling: ```javascript try { await riskyOperation(); } catch (error) { logger.error('Operation failed:', error); // Handle or re-throw the error throw error; } ``` ## Documentation [object Object]