The OWASP Top 10 2025 lists the ten most critical web application security risks: Broken Access Control, Security Misconfiguration, Software Supply Chain Failures, Cryptographic Failures, Injection, Insecure Design, Authentication Failures, Software or Data Integrity Failures, Security Logging and Alerting Failures, and Mishandling of Exceptional Conditions. Two categories are new, and SSRF merged into Broken Access Control.
The OWASP Top 10 is an awareness document, not a testing standard, yet it is the most widely referenced list of web application risks. This guide covers every 2025 category: what it is, a realistic example, how to prevent it and how penetration testers find it.
How the 2025 list was built
OWASP released the 2025 edition as a release candidate in November 2025. According to OWASP, the data behind it covers more than 175,000 CVEs mapped to 248 CWEs (Common Weakness Enumeration entries). Two categories, Software Supply Chain Failures and Security Logging and Alerting Failures, were partly ranked from a community survey, because testing data alone under-represents them. As it was published as a release candidate, check the official OWASP project page for final wording before citing it in policies or contracts.
2021 vs 2025: what changed
| Rank | 2021 | 2025 | Change |
|---|---|---|---|
| A01 | Broken Access Control | Broken Access Control | Still #1; now includes SSRF |
| A02 | Cryptographic Failures | Security Misconfiguration | Up from #5 |
| A03 | Injection | Software Supply Chain Failures | New; expands Vulnerable and Outdated Components |
| A04 | Insecure Design | Cryptographic Failures | Down from #2 |
| A05 | Security Misconfiguration | Injection | Down from #3 |
| A06 | Vulnerable and Outdated Components | Insecure Design | Down from #4 |
| A07 | Identification and Authentication Failures | Authentication Failures | Same rank, renamed |
| A08 | Software and Data Integrity Failures | Software or Data Integrity Failures | Same rank |
| A09 | Security Logging and Monitoring Failures | Security Logging and Alerting Failures | Same rank, renamed to stress alerting |
| A10 | Server-Side Request Forgery (SSRF) | Mishandling of Exceptional Conditions | New; SSRF merged into A01 |
Configuration and supply chain risk have grown, injection has fallen (though it remains common), and error handling now has its own category.
A01: Broken Access Control
What it is. Users can act outside their intended permissions: viewing other users' data, changing records they do not own, or reaching admin functions. In 2025 this category also absorbs Server-Side Request Forgery, where an attacker makes the server send requests to destinations it should not reach, such as internal services or cloud metadata endpoints.
Example. An invoice download link uses a sequential ID. Changing the number in the request returns another customer's invoice (an insecure direct object reference). Or an image-import feature that fetches a user-supplied URL can be pointed at internal addresses.
Prevention. Deny by default. Enforce authorization on the server for every request, checking ownership of the specific object, not just the user's role. Centralize access control logic. For SSRF, validate and allowlist outbound destinations and block access to internal and metadata addresses at the network layer.
How testers find it. Mostly manually: testing with accounts at different privilege levels, swapping object IDs, replaying requests without tokens and browsing to hidden admin paths. Scanners catch little, because they do not know who should own what.
A02: Security Misconfiguration
What it is. Insecure defaults, unnecessary features, verbose errors, missing security headers, open cloud storage and overly permissive settings anywhere in the stack. Its rise to #2 reflects how heavily applications now depend on configurable cloud services and frameworks.
Example. An internet-facing staging server runs in debug mode and leaks stack traces and environment variables.
Prevention. Use hardened baselines through infrastructure as code. Remove unused features and default accounts, apply security headers consistently, and scan configuration in your pipeline.
How testers find it. Automated scanning for headers, TLS settings, exposed files and default credentials, plus manual review of cloud and framework configuration.
A03: Software Supply Chain Failures
What it is. New for 2025, this broadens the 2021 category Vulnerable and Outdated Components. It covers not only known-vulnerable libraries but compromise anywhere in how software is built and delivered: dependencies, build systems, CI/CD pipelines, package registries and update mechanisms. Public incidents such as the SolarWinds build compromise and the XZ Utils backdoor showed how far this risk reaches.
Example. A popular open-source package your app depends on is taken over and a malicious version is published. Your build pulls it automatically because dependency versions are not pinned.
Prevention. Maintain a software bill of materials (SBOM), pin and verify dependency versions, use software composition analysis, restrict who can change pipelines, and protect signing keys and build secrets.
How testers find it. Software composition analysis, SBOM and CI/CD pipeline review, searching repositories for secrets, and checking whether build artifacts are signed and verified.
A04: Cryptographic Failures
What it is. Failures to protect data in transit and at rest: weak or outdated algorithms, missing encryption, poor key management, and predictable randomness.
Example. Passwords stored with a fast, unsalted hash, or an internal API that transmits personal data over plain HTTP because "it is inside the network".
Prevention. Encrypt sensitive data in transit and at rest with current, well-reviewed libraries, never custom cryptography. Hash passwords with a slow, salted password-hashing algorithm. Keep keys in a managed key service, not in code.
How testers find it. TLS testing, analyzing token randomness, and code review for hardcoded keys and weak algorithms.
A05: Injection
What it is. Untrusted input is interpreted as part of a command or query: SQL, OS command and LDAP injection, plus cross-site scripting (XSS), which OWASP groups here. Safer framework defaults pushed it down, but it is still found often.
Example. A search filter concatenates user input into a SQL query, letting an attacker dump the user table. Or a comment field renders user input as HTML, enabling stored XSS.
Prevention. Use parameterized queries, allowlist input validation where practical, context-aware output encoding, and a Content Security Policy as an extra layer against XSS.
How testers find it. Scanners and fuzzers detect many cases; manual testing finds second-order and context-specific injection; code review finds dangerous query building at the source.
A06: Insecure Design
What it is. Flaws in the design itself rather than in the implementation. Perfect code cannot fix a missing control that was never designed in.
Example. A password reset flow relies on security questions whose answers are easy to find online. Or a booking system lets anyone reserve unlimited slots without payment, allowing a competitor to block inventory.
Prevention. Threat model new features, use secure reference architectures, write abuse cases alongside user stories, and enforce business limits such as rate limits and quotas.
How testers find it. Business logic testing by experienced testers who understand the workflow, plus design and architecture reviews. These issues rarely appear in automated scan results.
A07: Authentication Failures
What it is. Weaknesses in confirming identity and managing sessions: credential stuffing, weak passwords, missing multi-factor authentication, non-expiring sessions and flawed recovery flows. The 2025 name drops "Identification".
Example. A login endpoint has no rate limiting, so attackers test leaked credential pairs at scale.
Prevention. Enforce multi-factor authentication, especially for administrators. Check passwords against breached-password lists, rate limit logins, invalidate sessions on logout and inactivity, and prefer proven identity providers over custom code.
How testers find it. Manual testing of login, reset and MFA flows, session and token analysis (for example JWT signature and expiry handling), and brute-force resistance checks.
A08: Software or Data Integrity Failures
What it is. Code or data is trusted without verifying its integrity. This includes insecure deserialization, auto-updates without signature verification, and loading scripts from untrusted sources.
Example. An application deserializes objects sent by the client, letting an attacker craft a payload that executes code on the server.
Prevention. Verify signatures on updates and artifacts, avoid deserializing untrusted data, and use subresource integrity for third-party scripts.
How testers find it. Spotting serialized objects in requests and cookies, testing update mechanisms, and reviewing deserialization code.
A09: Security Logging and Alerting Failures
What it is. Attacks go unnoticed because security-relevant events are not logged, logs are not monitored, or nobody is alerted. The 2025 rename from "Monitoring" to "Alerting" emphasizes that logs only help if they trigger a response.
Example. An attacker spends weeks testing stolen credentials. Failed logins are recorded, but no alert fires and nobody reviews them.
Prevention. Log authentication events, access control failures and high-value transactions with enough context to investigate. Centralize and protect logs, and define alerts with clear owners and response steps. Do not log secrets.
How testers find it. By checking with the defending team whether test activity was logged and alerted. Purple team exercises measure this directly.
A10: Mishandling of Exceptional Conditions
What it is. New in 2025. Applications fail to prevent, detect or respond correctly to unusual and error conditions. This includes failing open, leaking sensitive details in error messages, unhandled exceptions, and inconsistent state after a partial failure.
Example. A payment flow calls a fraud-check service. When that service times out, the exception is caught and ignored, and the transaction proceeds without the check. Or a malformed request crashes a worker and leaves a database transaction half-completed.
Prevention. Fail closed for security decisions. Handle errors centrally, show users generic messages while logging details internally, roll back incomplete transactions, and test failure paths deliberately.
How testers find it. Sending malformed, oversized, out-of-order and unexpected input; simulating timeouts and downstream failures; and reviewing error-handling code paths during source code review.
Related OWASP lists you should know
For testable requirements, OWASP also maintains the Application Security Verification Standard (ASVS).
Using the Top 10 in compliance and procurement
Customers and regulators often ask for evidence of testing against the OWASP Top 10. PCI DSS expects secure development that addresses common attack types, and financial and government sector requirements in Saudi Arabia, the UAE and Egypt commonly include regular penetration testing of internet-facing applications. Treat the Top 10 as minimum coverage: a good test also covers business logic and your stack's specific risks.
Frequently asked questions
When was the OWASP Top 10 2025 released?
OWASP released the 2025 edition as a release candidate in November 2025, replacing the 2021 edition. Check the official OWASP project page for any final changes.
What are the new categories in the OWASP Top 10 2025?
Two categories are new: A03 Software Supply Chain Failures, which expands the 2021 category Vulnerable and Outdated Components, and A10 Mishandling of Exceptional Conditions. Server-Side Request Forgery, which was A10 in 2021, is now part of A01 Broken Access Control.
Is the OWASP Top 10 a compliance standard?
No. OWASP describes the Top 10 as an awareness document. It is widely referenced in contracts and security questionnaires, but for verifiable requirements teams should use the OWASP ASVS.
Can automated scanners cover the whole OWASP Top 10?
No. Scanners find many misconfigurations, injection flaws and known-vulnerable components, but broken access control, insecure design and business logic flaws need manual testing by people who understand how the application should work.
Does the OWASP Top 10 apply to APIs and AI applications?
Partly. Many web risks apply to APIs, but OWASP maintains a separate API Security Top 10 for API-specific issues such as object-level authorization. Applications built on large language models should also be assessed against the OWASP Top 10 for LLM Applications.
Getting help
Asfaleia Tech, an NTRA Tier 1 accredited cybersecurity company, tests applications for organizations in Egypt, Saudi Arabia, the wider Middle East and worldwide against the OWASP Top 10 and beyond. See our web application penetration testing, API penetration testing, source code review and AI and LLM penetration testing services, or browse all services.