cloudflare-email-routing
Warn
Audited by Socket on Sep 15, 2026
1 alert found:
AnomalyAnomalytemplates/send-notification.ts
LOWAnomalyLOW
templates/send-notification.ts
The code is a conventional notification-email worker and does not show intentional malware or supply-chain sabotage. It contains a meaningful HTML injection risk because subject, message, and especially the unvalidated type value are inserted into HTML without escaping. It also appears vulnerable to unauthorized email relay abuse if deployed without authentication and rate limiting. SQL injection is not evident because the database statement is parameterized. HTML escaping, strict runtime schema validation, and access controls should be added.
Confidence: 98%Severity: 68%
Audit Metadata