The OWASP Top 10 is a regularly updated list of the ten most critical security risks facing web applications, published by the Open Web Application Security Project (OWASP). The current edition is the 2021 list: broken access control, cryptographic failures, injection, insecure design, security misconfiguration, vulnerable components, authentication failures, software and data integrity failures, logging failures, and server-side request forgery.
Key takeaways
- The OWASP Top 10 is an awareness list of risk categories, not a checklist of single bugs — each category covers many related weaknesses.
- Broken access control, cryptographic failures and injection top the 2021 list, and all three are usually preventable with basic controls.
- No single tool catches all ten risks; a real program combines secure design, code review, dependency scanning and runtime testing.
Ask ten security teams what to fix first in a web application and you will get ten different answers. The OWASP Top 10 exists to settle that argument with data: it is the closest thing web security has to a shared priority list.
What is the OWASP Top 10?
The OWASP Top 10 is a regularly updated list of the ten most critical security risks facing web applications, published by the Open Web Application Security Project (OWASP), a nonprofit foundation. The first edition appeared in 2003.
Each entry is a category of risk, not a single bug. For example, A03 Injection covers SQL injection, NoSQL injection, operating-system command injection, LDAP injection and cross-site scripting, which OWASP folded into Injection in 2021. Each category maps to many entries in CWE, the Common Weakness Enumeration.
OWASP builds the list from two sources: vulnerability data contributed by security firms, bug bounty platforms and consultancies, covering hundreds of thousands of applications, and a community survey of practitioners that captures emerging risks the data has not yet shown. Categories are ranked using incidence rate, exploitability, detectability and technical impact.
The current published edition is the 2021 list, as listed on the official OWASP Top 10 project page. Three categories were new or substantially restructured in 2021: A04 Insecure Design, A08 Software and Data Integrity Failures, and A10 Server-Side Request Forgery.
What are the 10 OWASP Top 10 risks?
The 2021 list, in order, is broken access control, cryptographic failures, injection, insecure design, security misconfiguration, vulnerable and outdated components, identification and authentication failures, software and data integrity failures, security logging and monitoring failures, and server-side request forgery.
| Rank | Category | Plain-English meaning | Typical example |
|---|---|---|---|
| A01 | Broken Access Control | Users can do or see things they should not | Changing an ID in a URL to view another user's account |
| A02 | Cryptographic Failures | Sensitive data is not protected properly | Passwords stored in plain text; old TLS versions |
| A03 | Injection | Untrusted input is run as code or commands | SQL injection in a login form |
| A04 | Insecure Design | Security was never built into the design | No rate limiting on password reset |
| A05 | Security Misconfiguration | Defaults, errors or settings expose the app | Debug mode left on in production |
| A06 | Vulnerable and Outdated Components | Old libraries with known flaws | An unpatched logging library with a known exploit |
| A07 | Identification and Authentication Failures | Logins can be broken or bypassed | Weak passwords allowed; no lockout after failed logins |
| A08 | Software and Data Integrity Failures | Code or updates are not verified | Installing a package from an untrusted source |
| A09 | Security Logging and Monitoring Failures | Attacks happen without anyone noticing | No alerts when an admin account logs in at 3 a.m. |
| A10 | Server-Side Request Forgery (SSRF) | The server is tricked into making requests | A URL field that fetches internal admin pages |
Read the rank as an address, not a verdict on any single finding. A low-ranked category can still contain a critical bug in your application, and a top-ranked category can contain a minor one. The order reflects how often each category appeared in the contributed data, blended with exploitability and impact.
A01: What is broken access control?
Broken access control means the application does not enforce who is allowed to do what. It moved to number one in 2021, and OWASP notes it maps to 34 underlying CWEs.
Classic examples include insecure direct object references, where changing account_id=123 to account_id=124 in a URL shows another user's data, missing function-level checks, where a regular user can call an admin-only API endpoint, and privilege escalation, where a user edits a request to grant themselves an admin role.
The fix is to enforce authorization on the server for every request, never trust the client to hide buttons or links, and deny access by default. Test it by trying every privileged action as a low-privilege user, not just by checking that the button is hidden.
A02: What are cryptographic failures?
Cryptographic failures happen when sensitive data is not protected in transit or at rest, or is protected with weak methods. This category was called Sensitive Data Exposure in the 2017 edition.
Examples include transmitting passwords or card data over plain HTTP, storing passwords with a fast hash such as MD5 instead of a slow one such as bcrypt or Argon2, using old TLS versions, hard-coded encryption keys in source code, and exposing secrets in error messages or logs.
The fix is to use TLS everywhere, encrypt sensitive data at rest, use modern algorithms and proper key management, and never store secrets in code. Check your own site's TLS and headers with our free SSL checker.
A03: What is injection?
Injection happens when untrusted input is sent to an interpreter as part of a command or query. It was number one in the 2017 edition and number three in 2021, but it remains one of the most dangerous categories.
SQL injection is the best-known form: an attacker types SQL code into a login field and the database runs it. The same pattern appears in NoSQL injection, operating-system command injection, LDAP injection and cross-site scripting, where attacker code runs in another user's browser.
The fix is to use parameterized queries or prepared statements, validate and encode all input, and use safe APIs instead of building queries from strings. Never concatenate user input into SQL, shell commands or HTML.
A04, A05 and A06: design, misconfiguration and components
These three categories are often fixed together, because they all come from how software is built and deployed rather than from one line of code.
A04 Insecure Design is new in 2021. It covers risks that cannot be fixed by patching code, because the design itself is unsafe: no rate limiting on login or password reset, no separation between tenants in a multi-tenant app, or a workflow that lets a user skip a payment step. The fix is threat modeling and secure design review before code is written.
A05 Security Misconfiguration covers unsafe defaults and settings: unnecessary features enabled, default accounts left active, verbose error messages that leak stack traces, missing security headers, and cloud storage left public. The fix is hardened baselines, automated configuration checks, and separate development and production settings.
A06 Vulnerable and Outdated Components covers libraries, frameworks and other software with known vulnerabilities. Modern applications pull in hundreds of dependencies, and one unpatched library can expose the whole app. The fix is a software bill of materials, dependency scanning in CI, and a process for patching quickly.
A07 and A08: authentication and integrity failures
Authentication and integrity failures let attackers pretend to be someone else, or run code that should never have been trusted.
A07 Identification and Authentication Failures includes weak or breached passwords, missing multi-factor authentication, session tokens that do not expire, and credential stuffing with passwords leaked in earlier breaches. The fix is phishing-resistant MFA, strong password rules, breached-password checks, and short session lifetimes. Our guide to how to know if your phone is hacked covers what stolen-session attacks look like from the user's side.
A08 Software and Data Integrity Failures is new in 2021 and covers code and updates that are not verified before use: packages installed without checking signatures, auto-update mechanisms with no integrity check, and CI pipelines that run untrusted code. The fix is to verify signatures and hashes, pin dependencies, and secure the build pipeline itself.
A09 and A10: logging failures and SSRF
The last two categories are about visibility and about servers that can be tricked into attacking themselves.
A09 Security Logging and Monitoring Failures means attacks happen without detection or response: no logs for login failures, logs that are not monitored, or alerts that nobody reads. The average breach goes unnoticed for weeks, and poor logging is a major reason why. The fix is to log authentication, access-control failures and high-value actions, protect logs from tampering, and alert on them.
A10 Server-Side Request Forgery (SSRF) is new in 2021. It happens when an application fetches a URL supplied by a user without validation, so an attacker can make the server request internal resources such as cloud metadata endpoints or admin pages that are not reachable from the internet. The fix is to validate and allow-list URLs, block requests to internal addresses, and segment internal services.
How do you use the OWASP Top 10 in practice?
Use the list as a prioritization and coverage tool, not as a compliance checkbox. Start with a simple program that any small team can run.
- Map your app to the ten categories. For each category, write down where it could apply: login, payments, file uploads, admin pages, third-party integrations.
- Test with at least three methods. Run static analysis on code, dependency scanning on libraries, and dynamic testing on the running app.
- Fix in priority order. Injection and broken access control first, then crypto failures and vulnerable components, then the rest.
- Add guardrails. Put the common fixes into templates and pipelines: parameterized queries by default, security headers by default, dependency scanning in CI.
- Re-check after every release. New features add new attack surface, and new dependencies add new known vulnerabilities.
For a wider starting point, our small business cybersecurity checklist covers web-app controls alongside backups, updates and device security.
Check your site's headers and TLS with the free security headers checker as a quick A05 spot check.
What mistakes do teams make with the OWASP Top 10?
The most common mistake is treating the list as a checklist of ten bugs to find and close. It is a list of risk categories, and closing one SQL injection finding does not mean A03 is done.
- Chasing the rank. Fixing A01 before A03 because it ranks higher, even when the A03 finding in your app is critical and the A01 finding is minor.
- One tool only. Buying a single scanner and assuming it covers all ten categories.
- Ignoring A04. Skipping design review because it is hard to automate, even though insecure design causes the hardest bugs to fix later.
- Forgetting A09. Fixing vulnerabilities but never improving logging, so the next attack goes unnoticed.
- Using an old edition. Still testing against the 2017 list, which misses SSRF, insecure design and integrity failures entirely.
The bottom line
The OWASP Top 10 works because it turns a huge field into ten priorities backed by real data. Learn the ten categories, test for them with more than one method, and fix injection and access control first.
Then make the fixes stick: secure defaults, dependency scanning in your pipeline, and logging that someone actually watches. The OWASP Top 10:2021 page links to the full detail for each category. Run the free security headers checker on your site today for a quick first check.
Frequently asked questions
What is the OWASP Top 10 in simple terms?
It is a list of the ten most critical security risks facing web applications, published by the nonprofit OWASP. Developers and security teams use it to prioritize what to fix first and to check whether their testing covers the risks that matter most.
What is the current OWASP Top 10 version?
The current published edition is the OWASP Top 10:2021. It has been the canonical version since its release in 2021, and it is still the edition most tools, contracts and compliance checklists reference.
Is the OWASP Top 10 a standard or a law?
Neither. It is an awareness document, not a law or a formal standard. Many organizations treat it as a baseline anyway, and some contracts and compliance frameworks require teams to address the risks it lists.
What is the difference between OWASP Top 10 and CWE?
CWE, the Common Weakness Enumeration, names individual weakness types such as SQL injection or cross-site scripting. The OWASP Top 10 groups many related CWEs into ten broader risk categories, so one Top 10 entry can cover dozens of CWEs.
How often is the OWASP Top 10 updated?
Roughly every three to four years. The first edition appeared in 2003, followed by editions in 2004, 2007, 2010, 2013, 2017 and 2021. Each edition re-ranks categories using contributed vulnerability data and a community survey.
Can one tool find all OWASP Top 10 issues?
No. Static testing finds injection and crypto flaws, dependency scanning finds vulnerable components, dynamic testing finds misconfiguration and access control gaps, and insecure design can only be caught by design review. A complete program layers several types of testing.
Which OWASP Top 10 risk should I fix first?
Fix injection and broken access control first in most applications, because they are common, easy to exploit and often lead directly to data theft. Then fix cryptographic failures and vulnerable components, which are also widespread and cheap to address.
Does the OWASP Top 10 apply to APIs and mobile apps?
Yes, with caveats. The web Top 10 covers web applications and APIs that serve them. OWASP also publishes separate Top 10 lists for APIs, mobile apps and large language model applications, which cover risks specific to those platforms.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the OWASP Top 10 project pages and the 2021 edition's published category list.
How we write and fact-check →