LLMs Technical Reviews

OWASP Top 10:2025

The baseline web-app risk list. The 2025 edition adds supply chain and error-handling categories, folds SSRF into access control, and ranks on data from 2.8M apps.

official page ↗OWASP Top 10 Projectedition 2025final10 itemssource Top10 @ 3a31f35

Previous edition: OWASP Top 10:2021. What changed →

Items at a glance

Not carried over from the previous edition: A10:2021 Server-Side Request Forgery (SSRF) (Server-side request forgery was rolled into A01:2025 Broken Access Control.).

What this list is

The OWASP Top 10:2025 is the eighth edition of the best-known web application risk list, published by the OWASP Top 10 Project. The project repository marks it as the released, final version and marks the 2021 edition as superseded. Neither the repository nor the 2025 pages give a release date, so we list it as unknown. It covers server-side web applications and the APIs behind them. Each entry is a category that groups many CWE weaknesses, not a single bug.

For a SaaS team this is the baseline. Customers’ security questionnaires, penetration-test reports and scanner dashboards still sort findings by these ten codes. It is not an LLM or agent list. The Injection page itself sends readers to the OWASP LLM Top 10 for prompt injection. Use it next to the OWASP API Security Top 10 2023 for API-first products, the OWASP Top 10 for LLM Applications 2026 for model features, and the OWASP Top 10 for Agentic Applications 2026 once a model can act. Below we tie each entry to its closest LLM and agent cousin, because most AI features in SaaS products are built from the same web parts.

How it was made

The introduction calls the method “data-informed, but not blindly data-driven”. Organisations contributed testing data on more than 2.8 million applications. For each CWE they reported how many applications were tested and how many had at least one finding. The team ranks by this incidence rate and ignores raw finding counts, so a scanner that reports 4,000 copies of one XSS bug does not outweigh a manual tester who reports it once. The team analysed 589 CWEs, grouped 248 of them into the ten categories, capped any category at 40 CWEs, and grouped by root cause rather than symptom where it could. Exploitability and impact scores come from CVSS v2 and v3 sub-scores of CVEs in the NVD, averaged per CWE. CVSS v4 was not used, because its formula no longer gives separate exploit and impact scores.

Eight categories come from the data and two from a community survey of practitioners. The source gives the reason: test data shows what tools could already detect, which lags behind what attackers do. The introduction and the item pages tie two entries to the survey: A03 Software Supply Chain Failures, which half the respondents ranked first, and A09 Security Logging & Alerting Failures, which the survey voted in again. One inconsistency: the methodology paragraph says twelve categories were ranked from data and two promoted from the survey, while a later section says eight of ten came from data.

The items

A01:2025 Broken Access Control

What it is. A user or caller can read, change or do something that their role, tenant or ownership should not allow. In 2025 the category also holds Server-Side Request Forgery (SSRF), which had its own slot in 2021, and still holds cross-site request forgery. It has 40 mapped CWEs, the largest number of occurrences in the data, and the second-largest CVE count.

How it shows up. In a multi-tenant SaaS app the classic case is an endpoint that loads /invoices/{id} and checks that the user is logged in, but not that the invoice belongs to the user’s tenant. Other forms: admin routes hidden only in the front end, a tenant ID read from the request body instead of the session, a permissive CORS policy, and JWTs that are never revoked. SSRF appears wherever the server fetches a URL that the customer supplies: webhooks, “import from URL”, link previews, PDF renderers. An attacker points the URL at an internal admin service or at the cloud metadata endpoint. AI features add a new path. An assistant that runs with one service account able to read every tenant’s data is broken access control with a chat window in front of it.

What to do. Deny by default. Enforce ownership and tenant checks in one shared server-side layer. Make agents act with the end user’s scoped, delegated token, not a super-user key. For URL fetches, use an allow-list of schemes, hosts and ports, and route the requests through an egress proxy that blocks private address ranges. To test, build two tenants with two roles each and replay every API call of one with the other’s session and IDs. The source asks for access control checks in unit and integration tests.

Related: API1:2023 Broken Object Level Authorization, API5:2023 Broken Function Level Authorization, API7:2023 Server Side Request Forgery, LLM03:2026 Excessive Agency, ASI03 Identity and Privilege Abuse, BLA9:2025 Broken Access Control (BAC), CWE-862 Missing Authorization, CWE-918 Server-Side Request Forgery (SSRF).

A02:2025 Security Misconfiguration

What it is. The software is sound, but it is set up unsafely: default accounts, sample apps left on, open cloud storage, missing security headers, verbose error pages, or framework settings left at insecure values. It moved from fifth to second place. The source links the rise to how much of an application’s behaviour now lives in configuration rather than code. XML external entity processing (XXE) sits here too.

How it shows up. A staging environment built by hand drifts from production and keeps debug mode on. A storage bucket that holds customer exports is shared publicly by a default. A stack trace returned to the browser names the framework version, and the attacker looks up its known flaws. For AI features, the same failure appears as a self-hosted model server or an MCP server started with its default settings, no authentication, and a port open to the internet.

What to do. Build every environment from code, with the same hardened settings and different credentials in each. Remove features, sample content and accounts you do not use. Send security headers. Put one central handler in front of all errors so details never reach users. The 2025 text adds a point that matters for SaaS: use the platform’s identity federation or short-lived credentials instead of static keys in config files and pipelines. Test with automated configuration checks in CI and against live environments. The source says a manual review once a year is the minimum if you cannot automate.

Related: API8:2023 Security Misconfiguration, MCP09:2025 Shadow MCP Servers, CICD-SEC-7 Insecure System Configuration, NHI7:2025 Long-Lived Secrets, 9 Not Using Standard Browser Security Controls.

A03:2025 Software Supply Chain Failures

What it is. A compromise anywhere in how your software is built, shipped or updated: a malicious or vulnerable dependency, a poisoned build tool, a hijacked package account, an unsafe IDE extension, or a pipeline weaker than the system it deploys. It grows out of A06:2021 Vulnerable and Outdated Components, which covered only known-vulnerable parts. Half of the survey respondents ranked it first. It has few matching CVEs (11), which the team puts down to how hard it is to test for. Yet it has the highest average exploit and impact scores in the data.

How it shows up. The source cites the 2025 Shai-Hulud npm worm. Malicious package versions ran a post-install script, stole secrets, and used any npm token they found to publish more infected packages. A SaaS team that runs npm install on laptops and CI runners holding publish tokens and cloud keys is exposed in the same way. For AI products the chain is longer: model weights, adapters, prompt templates, MCP servers, agent skills and the coding assistant’s own extensions all enter the build or the runtime.

What to do. Keep a software bill of materials that includes transitive dependencies. Pin versions and upgrade on purpose. Prefer signed packages from official sources. Protect branches and require a second person between a commit and production. Harden CI runners and developer machines, and scope secrets to each environment. Roll out updates in stages, so that a compromised vendor does not reach every system at once. Test by diffing the SBOM on each build and by checking whether any one account can push code to production alone.

Related: LLM04:2026 Supply Chain, ASI04 Agentic Supply Chain Vulnerabilities, MCP04:2025 Software Supply Chain Attacks & Dependency Tampering, CICD-SEC-3 Dependency Chain Abuse, OSS-RISK-2 Compromise of Legitimate Package, 4 Vulnerable and Outdated Components.

A04:2025 Cryptographic Failures

What it is. Missing, weak or misused cryptography: data sent or stored in clear text, old algorithms and protocols, reused or hard-coded keys, unvalidated certificates, weak random numbers, and fast unsalted password hashes. It dropped from second to fourth place. The source’s frame is the data, not the algorithm. First decide which data needs protection under privacy law, payment rules or business need, then protect that data.

How it shows up. Password reset tokens built with a non-cryptographic random function can be predicted. A CDN or a Redis cache keeps responses that contain personal data. An internal service-to-service call skips TLS because “it is inside the VPC”. A database dump leaks password hashes made with a fast function, which GPUs crack quickly. In LLM features, prompts, transcripts and embeddings often hold the most sensitive text in the system, yet they sit in stores that nobody classified.

What to do. Classify data and do not keep what you do not need. Use TLS 1.2 or later with forward secrecy, and HSTS. Use authenticated encryption and a cryptographically secure random generator. Hash passwords with an adaptive, salted function such as Argon2, scrypt, yescrypt or PBKDF2. Keep the most sensitive keys in an HSM. Turn off caching for sensitive responses. The 2025 text also asks teams to plan for post-quantum cryptography, with high-risk systems moved by the end of 2030. Test with a TLS scanner, a code search for MD5, SHA-1, ECB and weak random calls, and a check of Cache-Control headers on sensitive endpoints.

Related: M10 Insufficient Cryptography, ASI07 Insecure Inter-Agent Communication, LLM02:2026 Sensitive Information Disclosure.

A05:2025 Injection

What it is. Input reaches an interpreter, such as a SQL engine, a shell, an LDAP server, a template engine or the browser’s HTML parser, and part of it runs as code. Cross-site scripting (frequent, usually lower impact) and SQL injection (rarer, high impact) are both here. The category has more CVEs than any other, over 62,000, and it fell from third to fifth place.

How it shows up. A reporting feature lets customers choose a sort column, and the column name goes straight into SQL, which parameters cannot protect. A “ping this host” admin tool passes a domain to a shell command. An ORM query built by string concatenation is still injectable. The source makes the LLM link itself: prompt injection is a related class, covered by the OWASP LLM list. The difference matters. SQL has parameterised queries that keep data and instructions apart. Prompts have no such separation, so every document, email or web page an assistant reads can carry instructions. The classic forms return when model output flows into SQL, a shell or HTML without encoding.

What to do. Use safe APIs and parameterised queries. Allow-list any identifier that cannot be parameterised. Encode output for its context (HTML, attribute, JavaScript, URL). Validate input on the server with allow-lists, knowing that this is not a full defence. Treat LLM output as untrusted user input before it reaches any interpreter. Test with SAST, DAST and fuzzing of every parameter, header, cookie and JSON field. For AI features, add prompt-injection test cases to the same suite.

Related: LLM01:2026 Prompt Injection, LLM10:2026 Improper Output Handling, MCP05:2025 Command Injection & Execution, ASI05 Unexpected Code Execution (RCE), DSGAI12 Unsafe Natural-Language Data Gateways (LLM-to-SQL/Graph), CWE-79 Cross-site Scripting, CWE-89 SQL Injection.

A06:2025 Insecure Design

What it is. The control was never designed in, so no amount of careful coding can add it. This differs from a bug in a control that exists. The category covers missing threat modelling, weak business-logic rules, and unclear failure states. It slid from fourth to sixth place. The source reads that as a sign that threat modelling and secure design are spreading.

How it shows up. The source’s examples are worth borrowing: a group-booking discount that someone can apply to six hundred seats in a few requests, and a shop with no defence against scalper bots. In SaaS terms: a free trial that a script can renew forever by signing up again, a plan limit checked only in the UI, or tenant isolation left to a WHERE tenant_id = ? clause that every developer must remember. For AI products, the design question is which actions an agent may take alone and which need a human to approve. If nobody decided, the agent decides.

What to do. Threat-model the critical flows (sign-up, authentication, billing, sharing, data export, agent actions) before you write code. Write misuse cases next to use cases and turn them into tests. Keep a library of secure, paved-road components. Segregate tenants by design at every tier. Add plausibility checks at each layer. Test by running the misuse cases, for example “redeem the same coupon twice” or “export another tenant’s data”, as automated tests.

Related: API6:2023 Unrestricted Access to Sensitive Business Flows, BLA6:2025 Missing Transition Validation (MTV), LLM03:2026 Excessive Agency, ASI09 Human-Agent Trust Exploitation.

A07:2025 Authentication Failures

What it is. The system accepts someone as a user they are not. The causes are credential stuffing and password spraying that nothing slows down, weak or breached passwords, weak recovery flows, missing MFA, sessions that never end, and tokens accepted without checks on who they were issued for. It kept seventh place. “Identification” was dropped from the name to match the 36 CWEs better. The source credits standard authentication frameworks for fewer failures.

How it shows up. An attacker takes a breached password list and tries small variations (“Winter2025” becomes “Winter2026”) against the login API, which has no rate limit. Different messages for “unknown user” and “wrong password” tell the attacker which accounts exist. With single sign-on, logging out of one app leaves the others open. The 2025 text adds a check that matters for SaaS and agents alike: validate a token’s audience, issuer and scopes. Otherwise a token minted for one service, or for one MCP server, is replayed against another.

What to do. Offer MFA and enforce it for admins. Check new passwords against breached-password lists and follow NIST 800-63b, which means no forced rotation. Return the same message for every login and recovery outcome. Throttle failed attempts without locking out real users. Issue a new session ID after login and end sessions on logout, on idle and at an absolute timeout. Use a well-tested identity provider rather than building your own. Test enumeration by comparing responses and timings, try a token from service A on service B, and check that session IDs change at login.

Related: API2:2023 Broken Authentication, NHI4:2025 Insecure Authentication, MCP07:2025 Insufficient Authentication & Authorization, ASI03 Identity and Privilege Abuse, BLA8:2025 Internal State Disclosure (ISD), CWE-306 Missing Authentication for Critical Function.

A08:2025 Software or Data Integrity Failures

What it is. Code or data is treated as trusted without proof that it came from the expected source and was not changed. The source says this sits “at a lower level” than supply chain failures. A03 is about the whole ecosystem. A08 is about the specific places where your application accepts an update, a plug-in, a serialised object or a file without checking it. The name changed only from “and” to “or”.

How it shows up. The source gives a case that SaaS teams meet often: a support subdomain pointed by CNAME at a vendor, so the vendor receives every session cookie scoped to the parent domain. Other forms: user state sent to the client as a serialised Java object and accepted back, auto-update without signatures, and incoming webhooks processed without checking their signature. In AI systems, the same mistake is loading model files in formats that run code on load. Another is letting text written by users flow into shared agent memory or a RAG store that the agent later treats as fact.

What to do. Verify signatures on code, updates and data that cross a trust boundary. Consume dependencies only from trusted registries, or from a vetted internal mirror for higher-risk products. Review configuration changes as you review code. Do not accept serialised objects from clients without an integrity check. Scope cookies tightly and do not share a cookie domain with third parties. Test by tampering: change a signed payload, replay a webhook with a bad signature, and confirm both are rejected.

Related: CICD-SEC-9 Improper Artifact Integrity Validation, LLM05:2026 Data and Model Poisoning, ASI06 Memory & Context Poisoning, 5 Lack of Third-party Origin Control, CWE-502 Deserialization of Untrusted Data.

A09:2025 Security Logging & Alerting Failures

What it is. Security-relevant events are not logged, or they are logged and nobody is told. The rename from “Monitoring” to “Alerting” is the point: the source argues that good logs without alerts add little. The category also covers logs that leak secrets or personal data, and logs open to injection. It has only 5 CWEs and few CVEs. The survey voted it onto the list, for the third time according to the source.

How it shows up. Failed logins, permission denials and input validation failures go unrecorded, or they are recorded only on the local disk of an autoscaled container that disappears. A DAST scan runs against production for an hour and no alert fires. In AI features, tool calls made by an agent are logged without the user or agent identity behind them, so no one can say who deleted the records. Debug traces then store full prompts, including the customer data and API keys pasted into them.

What to do. Log authentication, access control and validation failures with enough user context, and ship the logs off the host. Encode log data. Keep an append-only audit trail for business transactions. Write alert use cases with a playbook for each, and tune them so the team trusts them. Seed honeytokens, such as fake records or fake credentials, which give alerts with almost no false positives. Test by running an attack simulation and timing how long it takes for a person to be paged.

Related: MCP08:2025 Lack of Audit and Telemetry, CICD-SEC-10 Insufficient Logging and Visibility, T8 Repudiation & Untraceability, LLM02:2026 Sensitive Information Disclosure, 8 Client-side Security Logging and Monitoring Failures.

A10:2025 Mishandling of Exceptional Conditions

What it is. A new category for 2025. The software does not prevent, notice or recover from an abnormal state, such as a missing parameter, a null value, a timeout, a full disk, or a permission it lacks, and lands somewhere unsafe. The 24 CWEs include failing open, error messages that leak sensitive detail, and NULL pointer dereference. Some of these CWEs used to sit under general “code quality”. The team made them a category so the guidance can be more specific.

How it shows up. The source’s best example is a money transfer broken by a network fault halfway through: the debit has happened, the credit has not, and the system does not roll back. In SaaS products, look at payment webhooks that half-apply, and at an authorisation service that times out while the caller treats “no answer” as “allow”. AI features fail open in the same way. A moderation or guardrail call times out and the app sends the raw model output anyway. An agent’s tool returns a stack trace, and the model repeats it to the user. Or the agent retries a failing call in a loop and burns tokens.

What to do. Catch errors where they occur, plus one global handler as a backstop. Roll back the whole transaction on failure, which means failing closed. Return generic errors to users and log the detail. Put limits on everything: rate limits, quotas, timeouts, retry budgets. The source states that nothing in IT should be limitless. Test with fault injection: kill a dependency mid-request, send missing and malformed fields, and confirm the system denies the request and leaves no partial state.

Related: BLA2:2025 Concurrent workflow order bypass (CWOB), ASI08 Cascading Failures, LLM06:2026 Unbounded Consumption, CWE-476 NULL Pointer Dereference.

What changed

Compared with the OWASP Top 10:2021, the introduction counts two new categories and one consolidation. A03 Software Supply Chain Failures widens A06:2021 Vulnerable and Outdated Components from “known-vulnerable parts” to the whole build and distribution chain. A10 Mishandling of Exceptional Conditions is new. A10:2021 Server-Side Request Forgery lost its own slot and was rolled into A01 Broken Access Control. The 2021 SSRF page had already said that it hoped to fold the entry into a larger category later. No risk was dropped from scope.

The order also moved. Security Misconfiguration rose from fifth to second, and Software Supply Chain Failures entered at third. That pushed Cryptographic Failures (second to fourth), Injection (third to fifth) and Insecure Design (fourth to sixth) down. Three names changed: Identification and Authentication Failures became Authentication Failures, “Software and Data” became “Software or Data”, and “Monitoring” became “Alerting”. The data set also grew, from about 400 CWEs and over 500,000 applications in 2021 to 589 CWEs and over 2.8 million applications.

What it misses

  • AI-specific risks. Prompt injection, excessive agency, model supply chain and unbounded inference cost appear only as a pointer to the LLM list. That is a fair scope choice, but a SaaS team shipping AI features needs the LLM and agentic lists as well.
  • Tenant isolation. This is the main SaaS-specific risk, yet it appears only in passing in A02 and A06, not as a named theme.
  • Abuse of working features. Bots, scalping, coupon races and quota abuse sit under A06 and partly A10. The OWASP API Security Top 10 2023 (API4, API6) and the OWASP Top 10 for Business Logic Abuse – 2025 treat them more directly.
  • Browser-side risk. Third-party scripts, JavaScript drift and client-side storage get only brief mentions. The OWASP Top 10 Client-Side Security Risks covers that ground.
  • Overlapping boundaries. The source admits that some overlap is unavoidable. The A03 and A08 split is hard to apply. CSRF sits under access control and XXE under misconfiguration rather than injection. Error-message leaks appear in A02, A09 and A10.
  • Internal number mismatches. The introduction gives A03 five CWEs while its own page lists six. It gives Injection 38 CWEs while the page says 37. The per-category CWE lists add up to 249, not the stated 248. The A03 average incidence is 5.19% in the text and 5.72% in the table. The A04 background promises three weak-randomness CWEs and then names four, one of which concerns broken algorithms rather than randomness.
  • Coverage stated as incidence. The A01 and A02 pages say that 100% of tested applications “were found to have” some form of the weakness. Their own score tables show 100% maximum test coverage and an average incidence near 3–4%. Read the 100% as “tested for”, not “vulnerable”.
  • Naming. A09 is written with “&” in its heading and with “and” in the index and file name. The A03 page still calls A08 by its 2021 name. The Injection page links to the 2025 LLM edition, which the 2026 edition has replaced.
  • No release date anywhere in the repository.

Our take

Use this list as the shared vocabulary of SaaS security: for audit scopes, pen-test reports, vendor questionnaires and developer training. Its method is among the most transparent of the OWASP lists, and its data set is by far the largest. Its entries are categories, not test cases. For a test plan, map each one to the 2025 CWE Top 25 Most Dangerous Software Weaknesses and the OWASP testing guides, and add the OWASP API Security Top 10 2023 if your product is mostly an API. The 2025 edition is a clear improvement on 2021, mainly for supply chain and failure handling. Prefer it over 2021 for anything new. It stops at the model boundary, so any product with an LLM feature also needs the OWASP Top 10 for LLM Applications 2026, and any product with agents needs the OWASP Top 10 for Agentic Applications 2026.

Item codes and names are from “OWASP Top 10:2025” by OWASP Top 10 Project, licence: CC BY-SA 4.0. Read the official text before relying on a detail. The review text on this page is ours.