OWASP Top 10 (2025) Explained for Developers
A developer-friendly walkthrough of the OWASP Top 10 2025 web application security risks, with examples of each and the first defences to apply.
Published December 6, 2026
The OWASP Top 10 is the most widely referenced list of critical web application security risks, updated every few years from real vulnerability data and community input. The 2025 edition keeps broken access control at number one, elevates security misconfiguration, and adds two notable categories: software supply chain failures and mishandling of exceptional conditions. Here is what each means in practice.
The concept
The list is an awareness document, not a complete standard: it highlights categories that cause the most damage, each grouping many specific weaknesses (CWEs). For verification you would use the OWASP Application Security Verification Standard (ASVS); for daily development, the Top 10 is a great checklist for design reviews, code reviews and training.
A recurring theme across categories is that the most effective defences are architectural and default-on: deny-by-default access control in a central layer, parameterised queries everywhere, secure framework defaults, dependency inventory and updates, centralised error handling and logging. Bolting on checks later is harder and leakier.
The list
| # | Category (2025) | Example | First defence |
|---|---|---|---|
| A01 | Broken Access Control | Change /orders/123 to /orders/124 and see another user's order | Server-side authorization on every request, deny by default |
| A02 | Security Misconfiguration | Debug mode and default credentials in production | Hardened, automated configuration baselines |
| A03 | Software Supply Chain Failures | Malicious or vulnerable dependency | Inventory, pinning, updates, provenance |
| A04 | Cryptographic Failures | Passwords hashed with MD5, data over HTTP | Modern algorithms, TLS everywhere, key management |
| A05 | Injection | SQL built from user input | Parameterised queries, safe APIs, output encoding |
| A06 | Insecure Design | No rate limit on password reset | Threat modelling, secure design patterns |
| A07 | Authentication Failures | Credential stuffing succeeds | MFA/passkeys, rate limits, breached password checks |
| A08 | Software or Data Integrity Failures | Unsigned updates, unsafe deserialization | Signatures, integrity checks, safe parsers |
| A09 | Security Logging & Alerting Failures | Breach unnoticed for months | Log security events, alert on anomalies |
| A10 | Mishandling of Exceptional Conditions | Error path skips an authorization check (fail open) | Fail closed, central error handling |
Category names from the OWASP Top 10:2025 release.
Mapping risks to the lifecycle
Using it in a team
- Add Top 10 prompts to design and PR templates
- Enable framework security defaults (CSRF, escaping, ORM parameters)
- Run SAST, dependency and configuration scanning in CI
- Centralise authorization and error handling
- Verify with ASVS and periodic penetration tests
Practical examples
Deny-by-default authorization check
Every handler checks ownership, not just authentication.
def get_order(request, order_id):
order = Order.objects.filter(id=order_id, customer_id=request.user.id).first()
if order is None:
raise Http404() # same response whether it exists or not
return orderParameterised query
The single most effective injection defence.
// Bad: db.query(`SELECT * FROM users WHERE email = '${email}'`)
const { rows } = await db.query('SELECT * FROM users WHERE email = $1', [email])Fail closed on errors
An exception in a permission check must deny, not allow.
def can_access(user, resource):
try:
return policy.check(user, resource)
except Exception:
log.exception("authorization check failed")
return FalseCommon mistakes
- Treating the Top 10 as a complete security standard.
- Hiding endpoints in the UI and assuming that is access control.
- Catching exceptions in a way that skips security checks.
- Security reviews only at the end of a project.
Key takeaways
- The Top 10 highlights the most damaging web risk categories.
- Broken access control remains number one.
- 2025 adds supply chain failures and mishandling of exceptional conditions.
- Use it for awareness; verify with ASVS and testing.
FAQ
How often is the Top 10 updated?
Roughly every three to four years; previous editions were 2017 and 2021.
Is there a Top 10 for APIs and LLM apps?
Yes. OWASP maintains separate API Security Top 10 and Top 10 for LLM Applications lists.
What is ASVS?
The Application Security Verification Standard: a detailed, testable list of security requirements organised in levels.