The OWASP Top 10 is the most widely used awareness document for web application security. The 2025 edition, announced in November 2025, is the first update since 2021. It keeps most of the familiar categories but reflects a shift: security is increasingly about how software is built, configured and delivered, not only how individual lines of code are written.

What changed from 2021

  • Two new categories: Software Supply Chain Failures (A03) and Mishandling of Exceptional Conditions (A10).
  • Security Misconfiguration rose from fifth place to second.
  • Software Supply Chain Failures expands the old "Vulnerable and Outdated Components" category.
  • Broken Access Control stays at number one, and now includes server-side request forgery (SSRF).
  • Injection is no longer in the top three; it is now fifth.

The ten categories in practice

A01: Broken Access Control

Users can act outside their permissions: viewing someone else's record by changing an ID, or calling an admin endpoint without being an admin. Enforce authorization on the server for every request, deny by default, and check object ownership. In Laravel, for example:

public function update(Request $request, Post $post)
{
    $this->authorize('update', $post); // policy checks ownership
    $post->update($request->validated());
}

A02: Security Misconfiguration

Debug mode left on, default credentials, open cloud storage, verbose errors. Keep environments reproducible, disable debug output in production, and review configuration as code.

A03: Software Supply Chain Failures

Risk from the dependencies, build tools and pipelines you rely on. Pin versions, review updates, and scan regularly:

composer audit
npm audit
dotnet list package --vulnerable

Also protect your CI/CD secrets and only run build steps you trust.

A04: Cryptographic Failures

Sensitive data sent or stored without proper protection. Use TLS everywhere, use well-tested libraries, hash passwords with a purpose-built algorithm such as bcrypt or Argon2, and never invent your own cryptography.

A05: Injection

Untrusted input interpreted as code, such as SQL, OS commands or templates. Use parameterized queries:

$user = DB::select('select * from users where email = ?', [$email]);

A06: Insecure Design

Flaws in the design itself rather than the implementation. Threat-model features early and write abuse cases next to user stories.

A07: Authentication Failures

Weak password policies, missing rate limiting, session mismanagement. Support multi-factor authentication or passkeys, rate-limit login attempts, and rotate session identifiers after login.

A08: Software or Data Integrity Failures

Trusting code or data without verifying integrity, for example unsigned updates or insecure deserialization. Verify signatures and checksums, and avoid deserializing untrusted data.

A09: Security Logging and Alerting Failures

Without useful logs and alerts, attacks go unnoticed. Log authentication events and access-control failures, protect the logs, and alert on suspicious patterns.

A10: Mishandling of Exceptional Conditions

Errors handled badly can leak information or leave the system in an unsafe state. Fail closed, return generic messages to users, and test unusual paths:

try
{
    await paymentService.ChargeAsync(order);
}
catch (PaymentException ex)
{
    logger.LogError(ex, "Payment failed for order {OrderId}", order.Id);
    return Results.Problem("Payment could not be processed.", statusCode: 502);
}

A short starting checklist

  1. Turn debug off and review configuration in every environment.
  2. Run dependency audits in CI and fail the build on serious findings.
  3. Add an authorization test for every endpoint that returns user data.
  4. Use parameterized queries and validated input everywhere.
  5. Centralize error handling and log security-relevant events.

AI-connected apps add new attack surfaces too; see our notes on the security checklist in building an MCP server.

References