Vibeleaderboard
← Glossary
Glossary · AI and agent workflows

Injection

A flaw where untrusted input is pasted into a command so that the input changes the command's meaning.

The classic form assembles a database query by joining a user-supplied value into the query text, so a crafted value alters what the query does. The remedy is to pass the value separately as a parameter, so it is treated as data, and more generally to treat everything that arrives from a browser or another untrusted source as data to be checked. The flaw lives at the boundary where input meets a command, which is where a reviewer should look when a change adds such a boundary.

See how the idea fits

Release only what you can explain and recover from →
Definition sources