LLMs Technical Reviews

OWASP Top 10:2021

The 2021 web-app baseline, now superseded by the 2025 edition. Still needed to map older audits, contracts and tools that cite its A01-A10 codes.

official page ↗OWASP Top 10 Projectedition 2021finalreleased 2021-09-2410 itemssource Top10 @ 3a31f35

Superseded by OWASP Top 10:2025. What changed →

Items at a glance

Not carried over from the previous edition: A4:2017 XML External Entities (XXE) (Now part of A05:2021 Security Misconfiguration.); A7:2017 Cross-Site Scripting (XSS) (Cross-site scripting is now part of A03:2021 Injection.); A8:2017 Insecure Deserialization (Now part of A08:2021 Software and Data Integrity Failures.).

What this list is

This edition has been replaced by the OWASP Top 10:2025. The project repository now labels 2021 as superseded. The OWASP Top 10 Project first released it on 24 September 2021, and a v1.1 followed on 13 July 2025. It ranks the ten most serious risk categories for web applications. Each category groups many CWE weaknesses.

Read it today for one of two reasons. Many contracts, audit reports, scanner rules and training courses still cite its A01–A10 codes, so you need it to map old findings. And it shows how the list reached its current shape. For new threat models and test plans, use the 2025 edition. For each entry below we name its 2025 successor.

How it was made

The team asked organisations for testing data with no limit on which CWEs they could report. It received data on over 500,000 applications and close to 400 CWEs. It ranked by incidence rate, the share of tested applications with at least one finding, rather than by raw counts. Raw counts would let high-volume scanner output drown out manual testing. Exploitability and impact scores came from CVSS v2 and v3 sub-scores of about 125,000 CVE-to-CWE records in the NVD. Eight categories were chosen from the data. Two were added from a community survey of practitioners: A10 SSRF (the survey’s first choice) and A09 Logging and Monitoring (its third). A06 Vulnerable and Outdated Components had no CVEs mapped to its CWEs, so the team gave it a default score of 5.0 for both exploit and impact.

The items

A01:2021 Broken Access Control

Users act outside their permissions. They open another account’s record by changing an ID, reach admin pages by guessing the URL, call API methods that lack checks, or tamper with JWTs and cookies. This edition moved it up from fifth to first place, with the most occurrences in the data. The fix is the same as in 2025: deny by default, enforce ownership on the server in one shared mechanism, and test access rules in unit and integration tests. In 2025 it stays A01 and also absorbs SSRF.

Related: A01:2025 Broken Access Control, API1:2023 Broken Object Level Authorization, LLM03:2026 Excessive Agency.

A02:2021 Cryptographic Failures

This was Sensitive Data Exposure in 2017. It was renamed because exposure is a symptom and failed or missing cryptography is the cause. It covers clear-text transport, old algorithms and padding schemes, poor key handling, weak randomness and fast password hashes. The source’s first example is worth remembering: a database that decrypts card numbers automatically on read gives them away in clear text to anyone with a SQL injection. It became A04 in 2025.

Related: A04:2025 Cryptographic Failures, M10 Insufficient Cryptography.

A03:2021 Injection

Untrusted input reaches an interpreter and is run as a query or command: SQL, NoSQL, OS command, ORM, LDAP or expression language. This edition merged cross-site scripting into the category, and the category fell from first to third place. The controls are parameterised queries, safe APIs, server-side allow-list validation and escaping for any query that must stay dynamic. In 2025 it is A05. That edition adds a pointer to prompt injection in the LLM list.

Related: A05:2025 Injection, LLM01:2026 Prompt Injection, LLM10:2026 Improper Output Handling.

A04:2021 Insecure Design

New in 2021. It covers flaws that no implementation can fix, because the needed control was never designed. The source separates design flaws from implementation defects and calls for threat modelling, secure design patterns and misuse cases. Its examples are a recovery flow based on security questions, a group-booking discount open to bulk abuse, and a shop with no bot defence. Unlike 2025, the prevention list also asks teams to limit resource use per user or service. It became A06 in 2025.

Related: A06:2025 Insecure Design, API6:2023 Unrestricted Access to Sensitive Business Flows, BLA6:2025 Missing Transition Validation (MTV).

A05:2021 Security Misconfiguration

Unsafe settings: default accounts, sample apps, directory listing, verbose errors, missing security headers, and cloud storage left open. It rose from sixth place, and the 2017 XML External Entities entry was merged into it. The answer is a repeatable, automated hardening process that builds identical environments with separate credentials, followed by automated checks. In 2025 it climbs to A02.

Related: A02:2025 Security Misconfiguration, API8:2023 Security Misconfiguration, MCP09:2025 Shadow MCP Servers.

A06:2021 Vulnerable and Outdated Components

This was Using Components with Known Vulnerabilities, and it rose from ninth place. The entry is about not knowing which versions you run, client-side and server-side, and patching them too slowly. The source admits the category is hard to test, which is why it had no CVE data. Controls: an inventory of components, software composition analysis, and official, signed sources. In 2025 it grew into A03 Software Supply Chain Failures, which covers the whole build and distribution chain.

Related: A03:2025 Software Supply Chain Failures, 4 Vulnerable and Outdated Components, OSS-RISK-1 Known Vulnerabilities.

A07:2021 Identification and Authentication Failures

This was Broken Authentication, and it slid from second to seventh place. It now also includes CWEs about identification. The failures are credential stuffing and brute force that nothing slows down, default or weak passwords, unsafe recovery, missing MFA, session IDs in URLs or not rotated at login, and sessions that never expire. The source credits standard frameworks for its fall. In 2025 the name is shortened to Authentication Failures, and the entry adds checks on token audience and scope.

Related: A07:2025 Authentication Failures, API2:2023 Broken Authentication, NHI4:2025 Insecure Authentication.

A08:2021 Software and Data Integrity Failures

New in 2021. Code, updates, CI/CD artefacts or serialised data are trusted without checking their integrity. Insecure Deserialization from 2017 became part of it. The source’s examples are unsigned firmware updates, the SolarWinds Orion malicious update, and a Java serialised user state passed back and forth between client and server. Controls: digital signatures, trusted repositories, review of code and configuration changes, and a segregated pipeline. In 2025 it keeps the A08 slot, renamed to “Software or Data”, with the wider supply chain split out into A03.

Related: A08:2025 Software or Data Integrity Failures, CICD-SEC-9 Improper Artifact Integrity Validation, LLM05:2026 Data and Model Poisoning.

A09:2021 Security Logging and Monitoring Failures

This was Insufficient Logging & Monitoring, at tenth place in 2017. It returned through the community survey and was widened. Failed logins and high-value transactions go unlogged, logs stay on the local host, nobody watches them, and pen tests trigger no alerts. The source’s examples are breaches that went unnoticed for years or were reported by outsiders. In 2025 “Monitoring” becomes “Alerting”, to stress that logs must lead to action.

Related: A09:2025 Security Logging & Alerting Failures, MCP08:2025 Lack of Audit and Telemetry, CICD-SEC-10 Insufficient Logging and Visibility.

A10:2021 Server-Side Request Forgery (SSRF)

New in 2021, and the survey’s top choice despite a low incidence rate in the data. The server fetches a URL that the user controls, so an attacker can make it scan internal ports, read local files, or query the cloud metadata service. The source asks for defence at two layers: deny-by-default network rules, plus a positive allow-list of scheme, port and destination in the application. It warns against deny-lists and regular expressions. The page said that the small entry might later fold into a larger one, and in 2025 it did, inside A01. Agents with a “fetch URL” tool bring this risk back.

Related: A01:2025 Broken Access Control, API7:2023 Server Side Request Forgery, ASI02 Tool Misuse and Exploitation, CWE-918 Server-Side Request Forgery (SSRF).

What changed

The 2017 edition is not reviewed on this site, so here is a short account taken from the 2021 introduction. It reports three new categories (Insecure Design, Software and Data Integrity Failures, SSRF), four renamed or rescoped ones, and some merging. Three 2017 entries lost their own slot but kept their content inside a 2021 category. A4:2017 XML External Entities (XXE) went into A05 Security Misconfiguration. A7:2017 Cross-Site Scripting (XSS) went into A03 Injection. A8:2017 Insecure Deserialization went into A08 Software and Data Integrity Failures. Broken Access Control rose from fifth to first, and Injection fell from first to third. The renames moved from symptoms to causes: Sensitive Data Exposure became Cryptographic Failures, and Broken Authentication became Identification and Authentication Failures.

For what happened next, see What changed between editions.

What it misses

  • Its age. Software supply chain attacks beyond known-vulnerable components, failure handling, and every LLM or agent risk are absent. The 2025 edition fills the first two.
  • No business-logic or abuse entry. Bot abuse and resource limits appear only as examples inside Insecure Design.
  • Small mismatches in the source. The introduction gives Injection an average incidence of 3.37%, and the category page gives 3%. The second Injection example uses ' UNION SLEEP(10);-- in the text and ' UNION SELECT SLEEP(10);-- in the URL. It then says this returns every record, which a time-delay payload does not do.
  • A changed sentence. The A08 page says not to send unsigned serialised data to untrusted clients. The 2025 page fixes this to not accepting such data from them.

Our take

Keep this edition for mapping legacy findings and for reading older audit reports and contracts. Do not start new work from it. Each 2021 code has a clear 2025 successor, and SSRF now lives inside A01, so moving test plans and dashboards to 2025 takes little effort. The 2021 edition is where the data call opened to all CWEs and the entries were renamed after causes rather than symptoms. The 2025 edition keeps both choices, so 2021 remains a useful historical reference.

Item codes and names are from “OWASP Top 10:2021” by OWASP Top 10 Project, licence: CC BY-SA 4.0. Read the official text before relying on a detail. The review text on this page is ours.