Course contentsShow
← Security
Lesson 1205 of 3,05225. Application Security - Secure CodingFree lesson

Evolution of Injection Attacks in the Rankings

How injection categories have shifted from #1 to #3 and the merging of multiple injection types.

Evolution of Injection Attacks in the Rankings

You'll learn how injection vulnerabilities have shifted position in the OWASP Top 10 and why multiple attack types were consolidated into a single category.

From Champion to Third Place

For over a decade, Injection held the notorious #1 spot in the OWASP Top 10. SQL Injection was the poster child of web application security vulnerabilities. However, in the 2021 edition, Injection dropped to #3 (Injection), replaced by Broken Access Control at the top.

Why the Drop?

This shift doesn't mean injection attacks disappeared—far from it. The drop reflects two key factors:

  1. Better awareness and frameworks: Modern development frameworks have built-in protections (parameterized queries, ORM safeguards) that have reduced SQL injection prevalence
  2. Relative growth of other threats: Access control issues and cryptographic failures have grown more prominent as applications became more complex

The Great Merger

The 2021 category also merged multiple injection types under one umbrella. Previously scattered or implicit, injection now explicitly includes:

  • SQL Injection (the classic)
  • NoSQL Injection
  • OS Command Injection
  • LDAP Injection
  • XPath Injection
  • Template Injection

Think of it like consolidating separate "burglary," "lock-picking," and "door-forcing" crimes into one "unlawful entry" category—the underlying principle is the same: untrusted data interpreted as code.

This consolidation helps security teams recognize the common root cause: failing to properly validate, sanitize, and separate data from executable contexts.

Key Takeaway: Injection attacks fell from #1 to #3 in OWASP Top 10 2021 due to improved defenses and the relative rise of other threats, while the category expanded to explicitly encompass all injection types under one unified ranking.