Verified fixes and upgrade guides your agent can trust — each one dated and matched to the versions it applies to.
An API key, password, or private key written as a literal in source code is compromised the moment it is committed — git history keeps it even after you delete the line. Read secrets from the environment or a secret manager; rotate anything that was ever hardcoded.
eval(), new Function(), and shelling out with a string built from input all let an attacker run their own code or commands. Use an argv array (never shell:true) for subprocesses, and avoid eval/new Function on anything that isn’t a fixed literal.
SQL injection is still the highest-confidence vulnerability class to catch automatically: any query built by string concatenation or template-literal interpolation of a variable is unsafe, no exceptions. Use parameterized queries/prepared statements — every driver and ORM in common use supports them.
Python’s pickle and PyYAML’s default Loader can execute arbitrary code while deserializing — never run them on data you didn’t create yourself. Use json, or yaml.safe_load / Loader=yaml.SafeLoader.
MD5 and SHA-1 are fast hashes, built for integrity checks, not for passwords — they are brute-forced at billions of guesses per second on commodity GPUs. Use bcrypt/argon2/scrypt for passwords, and crypto.randomBytes / secrets.token_hex for anything security-sensitive like tokens or session ids.
A server that fetches a URL supplied (even partly) by the client can be made to call internal services, cloud metadata endpoints, or localhost — server-side request forgery. Validate the destination against an allowlist of hosts/schemes before every outbound request built from request input.
Joining a request-supplied filename straight into a file path lets "../../etc/passwd"-style input escape the intended directory. Reject path separators and ".." in the input, or resolve the final path and check it stays under the intended base directory.
Looking a record up by the id in the URL/params without also checking the caller owns (or is otherwise allowed to access) it lets any authenticated user read or modify another user’s data by changing the id. Every lookup by a client-supplied id needs an ownership/scope filter in the same query.