UNPKG

ubon

Version:

Security scanner for AI-generated apps (Cursor, Lovable, Windsurf, v0). Catches hardcoded secrets, prompt injection, hallucinated imports, Server Actions / Edge runtime mistakes, and the vibe-coded vulnerabilities traditional linters miss.

28 lines 959 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const rule = { meta: { id: 'SEC016', category: 'security', severity: 'high', message: 'Use of eval() detected (security risk)', fix: 'Replace eval() with safer alternatives', impact: 'eval() can execute malicious code and is a common vector for code injection attacks', helpUri: 'https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/eval' }, impl: { patterns: [ { ruleId: 'SEC016', confidence: 0.9, pattern: /eval\s*\(/gi, message: 'Use of eval() detected (security risk)', severity: 'high', fix: 'Replace eval() with safer alternatives' } ], fileTypes: ['js', 'jsx', 'ts', 'tsx'] } }; exports.default = rule; //# sourceMappingURL=SEC016.js.map