Introduction
What Is SQL Injection?
Introduction
SQL injection is a web security vulnerability in which an attacker manipulates a SQL query by supplying malicious input that the application inserts directly into the query, instead of treating it strictly as data.
Injection has appeared in the OWASP Top 10 for Web Applications in every edition since the very first one in 2003, where it ranked #6. It held the #1 spot for a decade — the 2010, 2013, and 2017 editions — before dropping to #3 in 2021, and to #5 in the current 2025 edition. That decline reflects how widespread proper defenses like parameterized queries have become, not that injection stopped being dangerous — it remains one of the most consistently exploited vulnerability classes in real applications today.