TLDR InfoSec · STRATEGIES & TACTICS

DOES CLAUDE 3.7 SONNET GENERATE INSECURE CODE?

snyk.io3 min read

Summary from the TLDR InfoSec newsletter

Claude 3.7 Sonnet generated a CRUD application with notably secure code but still with a potential denial-of-service vulnerability in the email validation regex, which uses greedy quantifiers that could lead to exponential processing time. Despite this issue, Claude 3.7 Sonnet outperformed previous models and competitors that generated code with XSS vulnerabilities.