The OWASP Top 10 2025 as a Map
The OWASP Top 10 is an awareness document: a ranked list of the ten most important categories of web application security risk, built from vulnerability data contributed by testing firms and from a community survey. It is not a standard you can be "compliant" with, and it is not a testing checklist (that is the WSTG, next lesson). But it is the shared vocabulary of the field: reports, training, procurement questionnaires and tools all speak in its category names. The survey lesson introduced the 2021 list. This lesson lays the 2025 edition over the course you have just taken, so each category points to the lessons that show its mechanism, detection and fix, and shows how findings are classified with CWE identifiers.
The 2025 list
| ID | Category | What it covers | Lessons |
|---|---|---|---|
| A01:2025 | Broken Access Control | IDOR/BOLA, missing function-level checks, CSRF, path traversal, CORS misuse, and (newly folded in) SSRF | IDOR, function-level, CSRF, SSRF, path traversal, CORS |
| A02:2025 | Security Misconfiguration | debug modes, default settings, verbose errors, missing headers, XXE-prone parsers, open cloud storage | HTTP messages, security headers, XXE |
| A03:2025 | Software Supply Chain Failures | vulnerable or malicious dependencies, compromised build pipelines and update channels (expanded from 2021's "Vulnerable and Outdated Components") | Supply-Chain Security, Supply-Chain Attacks |
| A04:2025 | Cryptographic Failures | cleartext transport, weak or misused algorithms, poor key handling, weak password storage | password login, Applied Cryptography |
| A05:2025 | Injection | SQL, NoSQL, OS command, LDAP, template injection and XSS | SQLi in-band to XSS defences |
| A06:2025 | Insecure Design | missing or wrong security controls by design: business-logic flaws, no rate limits on sensitive flows, trust in the client | business logic, race conditions, trust model |
| A07:2025 | Authentication Failures | credential stuffing, weak login and recovery, session fixation, MFA gaps, JWT and OAuth mistakes | password login, MFA, sessions, JWT, OAuth |
| A08:2025 | Software or Data Integrity Failures | insecure deserialization, unsigned updates or data, untrusted CDN scripts without integrity checks | deserialization, SOP: SRI |
| A09:2025 | Security Logging and Alerting Failures | attacks that leave no log, logs nobody watches, alerts that never fire | the "How it is detected" section of every lesson |
| A10:2025 | Mishandling of Exceptional Conditions | errors that fail open, leak details or leave inconsistent state; unhandled edge cases | HTTP messages (debug traces), business logic |
What changed since 2021, in short: Security Misconfiguration rose to second place, Software Supply Chain Failures replaced and widened "Vulnerable and Outdated Components", SSRF lost its own entry and became part of Broken Access Control, logging gained "and Alerting" in its name, and Mishandling of Exceptional Conditions is new. Identification and Authentication Failures became simply Authentication Failures. Injection fell from third to fifth: other categories moved ahead of it in the data, but it remains one of the most tested categories and no less severe when present.
Classifying findings with CWE
Each Top 10 category groups many CWE entries (MITRE's Common Weakness Enumeration). Reports name both: the CWE is precise ("CWE-639: Authorization Bypass Through User-Controlled Key"), the Top 10 category is the summary. The example classifies a set of synthetic findings from an assessment and produces the summary table a report would contain. The CWE-to-category mapping is a small excerpt for the weaknesses in this course, taken from the "List of Mapped CWEs" on each 2025 category page (top10.owasp.org). Some weaknesses of this course have no 2025 mapping at all: NoSQL injection (CWE-943) and template injection (CWE-1336) are not on A05's list, so a report names them by CWE and states the category it chose.
from collections import Counter
CWE_TO_2025 = {
639: "A01 Broken Access Control", 285: "A01 Broken Access Control", 22: "A01 Broken Access Control",
352: "A01 Broken Access Control", 918: "A01 Broken Access Control", 601: "A01 Broken Access Control",
16: "A02 Security Misconfiguration", 611: "A02 Security Misconfiguration",
1104: "A03 Software Supply Chain Failures",
916: "A04 Cryptographic Failures", 319: "A04 Cryptographic Failures", 347: "A04 Cryptographic Failures",
89: "A05 Injection", 79: "A05 Injection", 78: "A05 Injection", 90: "A05 Injection",
841: "A06 Insecure Design", 362: "A06 Insecure Design",
384: "A07 Authentication Failures", 307: "A07 Authentication Failures",
502: "A08 Software or Data Integrity Failures",
778: "A09 Security Logging and Alerting Failures",
209: "A10 Mishandling of Exceptional Conditions",
}
findings = [
("F-01", "Invoices readable by any customer (BOLA)", 639, "High"),
("F-02", "Search parameter injectable (UNION)", 89, "Critical"),
("F-03", "Stored XSS in guestbook", 79, "Medium"),
("F-04", "Session id not rotated at login", 384, "Medium"),
("F-05", "Login has no attempt limit", 307, "Medium"),
("F-06", "Debug traceback on invalid input", 209, "Medium"),
("F-07", "Gift card double spend", 362, "High"),
("F-08", "Missing HSTS and frame-ancestors", 16, "Low"),
("F-09", "Link preview reaches metadata service", 918, "Critical"),
]
for fid, title, cwe, sev in findings:
print(f"{fid} CWE-{cwe:<5} {CWE_TO_2025[cwe]:42} {sev:8} {title}")
print()
for category, n in sorted(Counter(CWE_TO_2025[c] for _, _, c, _ in findings).items()):
print(f"{n} x {category}")F-01 CWE-639 A01 Broken Access Control High Invoices readable by any customer (BOLA)
F-02 CWE-89 A05 Injection Critical Search parameter injectable (UNION)
F-03 CWE-79 A05 Injection Medium Stored XSS in guestbook
F-04 CWE-384 A07 Authentication Failures Medium Session id not rotated at login
F-05 CWE-307 A07 Authentication Failures Medium Login has no attempt limit
F-06 CWE-209 A10 Mishandling of Exceptional Conditions Medium Debug traceback on invalid input
F-07 CWE-362 A06 Insecure Design High Gift card double spend
F-08 CWE-16 A02 Security Misconfiguration Low Missing HSTS and frame-ancestors
F-09 CWE-918 A01 Broken Access Control Critical Link preview reaches metadata service
2 x A01 Broken Access Control
1 x A02 Security Misconfiguration
2 x A05 Injection
1 x A06 Insecure Design
2 x A07 Authentication Failures
1 x A10 Mishandling of Exceptional Conditions
A01, A05 and A07 collect two findings each, and both Critical findings come from A01 and A05. In the real data behind the list, access control is where applications fail most often, because it is application-specific and no framework can add it for you.
How to use the Top 10 (and how not to)
- Use it for awareness training, for prioritising a review when time is short, for a common language in reports, and as a minimum bar in requirements ("no known A01–A10 issues").
- Don't use it as the whole test plan (it is ten categories, not a methodology), as a compliance checkbox, or as a ranking of your risks: your threat model decides that.
- Pair it with the OWASP ASVS (Application Security Verification Standard, version 5.0 published in 2025), which turns the categories into testable requirements at three levels, and the API Security Top 10 2023 for APIs (previous section).
Detection and fix, by category
Every category's detection and fix appeared in its lessons. As one list for a review: access checks on every object and function (A01), hardened configuration as code (A02), dependency inventory and signing (A03), TLS, modern algorithms and slow password hashes (A04), parameters and contextual encoding (A05), threat models and invariants (A06), strong authentication and session lifecycle (A07), signed data and no native deserialization of input (A08), logged and alerted security events (A09), fail-closed error handling (A10).
Pitfalls
- Mixing editions in one report: say "OWASP Top 10 2025" and use its IDs; A03 means something different in 2021 (Injection) and 2025 (Supply Chain).
- Ranking findings by category position: a Low A01 is not worse than a Critical A05. Severity comes from impact and likelihood (CVSS, your risk matrix), not from the list.
Practice
1. Classify: an XML upload endpoint resolves external entities. Which 2025 category, and which CWE?
A02 Security Misconfiguration (in 2021 it was also A05 Security Misconfiguration), CWE-611 Improper Restriction of XML External Entity Reference.
2. A report written in 2026 lists "A10: Server-Side Request Forgery". What is wrong?
That is the 2021 numbering. In the 2025 edition SSRF is part of A01 Broken Access Control, and A10 is Mishandling of Exceptional Conditions. State the edition and use its IDs.
Test yourself
Which category is A01 in the OWASP Top 10 2025?
- Injection
- Broken Access Control
- Security Misconfiguration
- Cryptographic Failures
Where did SSRF go in the 2025 edition?
- It was removed
- It was folded into A01 Broken Access Control
- It became A10
- It moved to A05
Which category is new in 2025?
- Insecure Design
- Mishandling of Exceptional Conditions
- Injection
- Cryptographic Failures
What is the Top 10 best used as?
- A complete test plan
- An awareness document and shared vocabulary; pair it with ASVS and WSTG for requirements and testing
- A compliance standard
- A severity scale