What is the OWASP Top 10? The 10 categories of the 2025 edition explained with examples
What OWASP is, what the Top 10 is for (and why it isn't a standard), the 10 categories of the 2025 edition with examples and prevention, what changed since 2021, a fixed SQL injection example in Python, and how to bring it all into the pipeline.
CI/CD$ semgrep scan --config p/owasp-top-ten .▍If you work on web applications, you’ve heard someone say “that’s in the OWASP Top 10.” The list has become the shared vocabulary of developers, security teams, and auditors. But it’s often misused: as a compliance checklist, as a complete list of everything that can go wrong, or as something “the tool already covers.”
In this guide, we’ll look at what the list really is, walk through the ten categories of the current edition with examples, and show how to turn it into controls in the pipeline.
What OWASP is
OWASP (Open Worldwide Application Security Project) is a nonprofit foundation that produces open material on software security: guides, tools, standards, and awareness lists. Everything is free and maintained by a community of volunteers. Besides the Top 10, it runs projects such as ASVS, SAMM, and the DevSecOps Guideline, which show up in the article what is DevSecOps.
What the OWASP Top 10 is (and what it isn’t)
The Top 10 is, in the project’s own words, an awareness document: a ranking of the most relevant risk categories in web applications, built from testing data on millions of applications and a community survey. It aligns vocabulary and shows where the most common problems are.
What it isn’t: a verification standard. Each category is broad and groups dozens of weaknesses (CWEs), so “being compliant with the Top 10” says little. For testable requirements, OWASP maintains ASVS (Application Security Verification Standard), currently at version 5.0.0, which lists concrete controls organized in levels.
The current edition: OWASP Top 10:2025
The current edition is 2025, the eighth installment of the list, already published as a final release (the launch was planned for November 2025; check the official page for details). It replaces the 2021 edition.
| # | Category (official name) | Change from 2021 |
|---|---|---|
| A01 | Broken Access Control | Keeps 1st place and now includes SSRF |
| A02 | Security Misconfiguration | Up from 5th place |
| A03 | Software Supply Chain Failures | New: expands “Vulnerable and Outdated Components” |
| A04 | Cryptographic Failures | Down from 2nd place |
| A05 | Injection | Down from 3rd place |
| A06 | Insecure Design | Down from 4th place |
| A07 | Authentication Failures | Renamed (was “Identification and Authentication Failures”) |
| A08 | Software or Data Integrity Failures | Same position |
| A09 | Security Logging and Alerting Failures | Renamed (“Monitoring” became “Alerting”) |
| A10 | Mishandling of Exceptional Conditions | New |
Categories A03 and A09 came in through the community survey, which complements the testing data and captures risks that tools still measure poorly.
The 10 categories, one by one
A01: Broken Access Control
The user can do or see something they shouldn’t. The classic example: changing /orders/1001 to /orders/1002 in the URL and seeing someone else’s order. The category now includes SSRF: the server fetches a URL supplied by the user and ends up reaching an internal address, such as the cloud metadata service. Prevention: deny by default, check authorization on the server for every request, and for SSRF, use an allowlist of destinations and block internal networks.
A02: Security Misconfiguration
Insecure configuration: debug mode on in production, default credentials, a public bucket, exposed stack traces, missing security headers. Prevention: repeatable configuration through infrastructure as code, IaC scanning on the PR, and removing everything that isn’t used.
A03: Software Supply Chain Failures
It goes beyond “outdated dependency” and covers the whole path from code to artifact: libraries, the build system, and distribution. A real example: in March 2026, tags of a popular scanning action on GitHub were repointed to code that stole secrets from pipelines. Prevention: SCA, SBOMs, actions pinned by SHA, artifact signing and provenance (see Cosign, SBOM, and SLSA).
A04: Cryptographic Failures
Sensitive data without adequate protection: traffic without TLS, passwords stored with MD5, keys in the code. Prevention: TLS everywhere, password hashing with an algorithm built for it (Argon2, bcrypt), keys in a KMS or vault, and no homemade cryptography.
A05: Injection
User input interpreted as code: SQL, operating system commands, XSS. Prevention: parameterized queries, APIs that don’t go through a shell, context-aware output escaping, and input validation. The code example further down shows the SQL case.
A06: Insecure Design
The flaw is in the design, not the implementation: a password recovery flow based on a secret question, a discount coupon with no usage limit. Perfect code won’t save an insecure design. Prevention: threat modeling, security requirements from the start, and abuse cases in the tests.
A07: Authentication Failures
Failures in proving who the user is: no MFA, accepting weak or breached passwords, no limit against credential stuffing, sessions that never expire. Prevention: MFA, attempt limits, checks against breached passwords, and session management with expiration and rotation.
A08: Software or Data Integrity Failures
Trusting code or data without verifying its integrity: auto-updates without signatures, deserializing objects sent by the client, a pipeline that publishes artifacts without verification. Prevention: sign and verify artifacts, don’t deserialize untrusted data, and protect the pipeline.
A09: Security Logging and Alerting Failures
The attack happens and nobody finds out: failed logins not recorded, logs without alerts, logs that store passwords. Swapping “Monitoring” for “Alerting” in the name stresses that recording isn’t enough; someone has to be notified. Prevention: log security events, alert on suspicious patterns, and have a response plan (see what to do after deploy).
A10: Mishandling of Exceptional Conditions
A new category for poorly handled errors, logic errors, and systems that fail open. Example: the authorization service times out and the code, in its except block, grants access. Another: an exception that returns a stack trace and database details to the user. Prevention: fail closed, handle errors centrally, show generic messages to the user, and test the error paths.
Example: SQL injection, vulnerable and fixed
import sqlite3
conn = sqlite3.connect(":memory:")
conn.execute("CREATE TABLE users (id INTEGER, email TEXT, is_admin INTEGER)")
conn.executemany("INSERT INTO users VALUES (?, ?, ?)",
[(1, "[email protected]", 0), (2, "[email protected]", 1)])
def find_user_vulnerable(email):
# VULNERABLE: user input becomes part of the SQL
query = f"SELECT id, email FROM users WHERE email = '{email}'"
return conn.execute(query).fetchall()
def find_user_safe(email):
# FIXED: parameterized query; the driver treats the input as data
query = "SELECT id, email FROM users WHERE email = ?"
return conn.execute(query, (email,)).fetchall()
payload = "x' OR '1'='1"
print("vulnerable:", find_user_vulnerable(payload))
print("safe: ", find_user_safe(payload))
Output:
vulnerable: [(1, '[email protected]'), (2, '[email protected]')]
safe: []
With the f-string, the payload closes the quote and adds OR '1'='1', which is always true: the query returns every user. With the ? placeholder, the driver sends the text as data and no email matches.
From the Top 10 to the pipeline
No tool covers the whole Top 10. Some categories are well detected by scanners; others depend on design, tests, and human review.
| Category | Pipeline controls |
|---|---|
| A01 Broken Access Control | Automated authorization tests, authenticated DAST, SAST rules for SSRF |
| A02 Security Misconfiguration | IaC and configuration scanning, DAST baseline (headers, debug) |
| A03 Software Supply Chain Failures | SCA, SBOMs, actions pinned by SHA, signing and provenance |
| A04 Cryptographic Failures | SAST (weak algorithms), secret scanning, TLS checks |
| A05 Injection | SAST and DAST |
| A06 Insecure Design | Threat modeling (no scanner finds it) |
| A07 Authentication Failures | DAST, integration tests for the login flow |
| A08 Software or Data Integrity Failures | Signature verification, SAST (insecure deserialization) |
| A09 Security Logging and Alerting Failures | Tests that check log events, code review, alerts in production |
| A10 Mishandling of Exceptional Conditions | SAST (swallowed exceptions), tests for error paths, code review |
Details on each tool type and where it fits are in SCA, SAST, and DAST: tools and pipelines.
Sibling lists: LLMs and APIs
OWASP maintains other lists in the same format:
- OWASP Top 10 for LLM Applications: the 2026 edition was announced in September 2026, and the 2025 edition is still widely cited. There is also a Top 10 specific to agentic applications. See the article on AI application security.
- OWASP API Security Top 10: the 2023 edition is still current, led by BOLA (Broken Object Level Authorization).
If your application exposes APIs or uses LLMs, check the matching list alongside the main Top 10.
How to use the Top 10 on your team
- Training: use the categories as a learning path, with examples in the stack your team uses.
- Threat modeling: walk through the categories when designing a feature and ask, “how could this happen here?”
- Code review checklist: turn the categories most relevant to your system into concrete questions for PR review.
- Requirements via ASVS: for verifiable acceptance criteria, pick an ASVS level and use its requirements. The Top 10 tells you where to look; ASVS tells you what to verify.
Checklist
- The team knows the 10 categories of the 2025 edition
- Database queries are always parameterized
- Authorization checked on the server for every request
- SAST, SCA, and DAST in the pipeline, knowing what each one doesn’t cover
- Threat modeling for new features
- Security requirements defined from ASVS
- Errors handled by failing closed, and security events triggering alerts
The Top 10 isn’t the list of everything that can go wrong. It’s the list of what goes wrong most often, and that’s why it’s the best place to start.