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)ExampleFirst defence
A01Broken Access ControlChange /orders/123 to /orders/124 and see another user's orderServer-side authorization on every request, deny by default
A02Security MisconfigurationDebug mode and default credentials in productionHardened, automated configuration baselines
A03Software Supply Chain FailuresMalicious or vulnerable dependencyInventory, pinning, updates, provenance
A04Cryptographic FailuresPasswords hashed with MD5, data over HTTPModern algorithms, TLS everywhere, key management
A05InjectionSQL built from user inputParameterised queries, safe APIs, output encoding
A06Insecure DesignNo rate limit on password resetThreat modelling, secure design patterns
A07Authentication FailuresCredential stuffing succeedsMFA/passkeys, rate limits, breached password checks
A08Software or Data Integrity FailuresUnsigned updates, unsafe deserializationSignatures, integrity checks, safe parsers
A09Security Logging & Alerting FailuresBreach unnoticed for monthsLog security events, alert on anomalies
A10Mishandling of Exceptional ConditionsError 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

Designthreat modelling, secure patterns (A06)Codeaccess control, injection, errors (A01, A05, A10)Dependenciessupply chain, integrity (A03, A08)Configurationhardening, crypto, auth (A02, A04, A07)Operationslogging, alerting (A09)
Where each category is mainly addressed.

Using it in a team

  1. Add Top 10 prompts to design and PR templates
  2. Enable framework security defaults (CSRF, escaping, ORM parameters)
  3. Run SAST, dependency and configuration scanning in CI
  4. Centralise authorization and error handling
  5. Verify with ASVS and periodic penetration tests
Turning the list into practice.

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 order

Parameterised 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 False

Common 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.

More Security articles