SQL Injection CWE-89
Tainted DB query construction, raw SQL with user input.
XSS CWE-79
Unescaped HTML output, innerHTML with user data, missing CSP.
Command Injection CWE-78
os.system / shell=True / exec with user input.
Path Traversal CWE-22
../ in user input reaching open() / file ops.
Hardcoded Secrets CWE-798
API keys, passwords, tokens, private keys baked into source.
Insecure Deserialization CWE-502
pickle.loads, yaml.load (without SafeLoader), eval on JSON.
Weak Crypto CWE-327
MD5/SHA1 for passwords, ECB mode, weak key sizes.
SSRF CWE-918
User-supplied URLs reaching server-side fetch without allowlist.
XXE CWE-611
XML parsers with external entity expansion enabled.
Race Conditions CWE-362
TOCTOU, missing locks around shared state.
Insecure Random CWE-330
random.random() for security tokens instead of secrets.
Open Redirect CWE-601
Redirect to user-supplied URL without allowlist.