OWASP API Security Top 10 2023
The standard checklist for API security, and a close fit for MCP tools; an expert-consensus 2023 edition that drops injection as not API-specific, and logging without explanation.
Previous edition: OWASP API Security Top 10 2019. What changed →
Items at a glance
Not carried over from the previous edition: API6:2019 Mass Assignment (Merged with Excessive Data Exposure into API3:2023 Broken Object Property Level Authorization.); API8:2019 Injection (No 2023 successor. The methodology says injection was left out because it is not specific to APIs.); API10:2019 Insufficient Logging & Monitoring (No 2023 successor, and the 2023 text gives no reason.).
What this list is
The OWASP API Security Top 10 2023 is the second edition of the API list from the OWASP API Security Project. It is final. The repository gives no release date, only a 2023 copyright; the release notes say it came out four years after the 2019 first edition. The publisher calls it a forward-looking awareness document and expects it to stay useful for three or four years.
The scope is risks that behave differently in APIs. The methodology says outright that generic application risks such as injection and vulnerable components were left out on purpose, because they work the same way in an API as anywhere else. So this list is a companion to the OWASP Top 10 for web applications, not a replacement: read both. For a SaaS product the API list matters more than its size suggests. Every tenant, every mobile client, every integration partner and every AI agent reaches your data through it. An MCP server is also an API: a set of named functions that take arguments from a caller, run with some identity, and return data. Most of the ten entries below apply to MCP tools with no change at all, so this review notes the agent angle for each one.
How it was made
The team reused the 2019 method and added a three-month public call for data (1 September to 30 November 2022). The call produced nothing usable for statistics, and the release notes say so plainly. The team first collected public API incident reports and bug bounty disclosures from 2019 to 2022 to see which way the list should move. It then held talks with specialists and drafted a list. Each entry was scored with the OWASP Risk Rating Methodology (exploitability, prevalence, detectability, technical impact). The source admits the edition is not data-driven: the prevalence scores are a consensus of the team. Practitioners reviewed the draft, a release candidate went out for public comment, and community pull requests were merged into the final text.
In short, this is an expert-panel list with a public review step. The scores are informed opinion, not measured frequency.
The items
API1:2023 Broken Object Level Authorization
What it is. An endpoint takes an object identifier from the caller (a path segment, query parameter, header or body field) and acts on that object without checking that this caller may touch it. The caller is allowed to use the endpoint; the failure is at the level of the single record.
How it shows up. In a multi-tenant SaaS this is the cross-tenant leak. GET /api/invoices/8812 returns an invoice from another customer because the handler loads by ID and never compares the invoice’s tenant with the session’s tenant. GraphQL mutations that take a list of IDs, export jobs and file download links are common blind spots. The source warns that comparing the user ID in the token with a user ID in the request covers only a small part of the problem. The same flaw appears in agent systems. An MCP tool get_ticket(ticket_id) that runs under a shared service account will fetch any ticket the model asks for. A prompt-injected model will ask for the wrong one.
What to do. Take the tenant and user from the verified session, never from the request. Push the check into the data layer, for example a tenant-scoped repository or database row-level security, so a new endpoint cannot forget it. Random identifiers make guessing harder but do not replace the check. For tools, authorize against the end user the agent acts for, not the server’s own account. Test with two tenants: replay every ID-bearing request from tenant A with tenant B’s token and fail the build on any 200.
Related: A01:2025 Broken Access Control, CWE-639 Authorization Bypass Through User-Controlled Key, MCP07:2025 Insufficient Authentication & Authorization, ASI03 Identity and Privilege Abuse.
API2:2023 Broken Authentication
What it is. The API cannot reliably tell who is calling. Weak login and recovery flows, unsigned or unchecked tokens, and services that trust each other without proof all belong here.
How it shows up. The source lists the usual suspects: no brute-force protection, tokens accepted with alg: none or without an expiry check, secrets in URLs, and sensitive changes such as a new email address allowed without re-entering the password. Its most API-specific example is GraphQL batching. A hundred login attempts packed into one HTTP request slip past a per-request rate limit. Inside a SaaS backend, an internal microservice that accepts any call from the cluster network is the same flaw. The source also says that OAuth is not authentication, and neither is an API key. That matters for MCP and agent tools. A remote MCP server that accepts a bearer token minted for some other audience, or passes the user’s token straight through to a downstream API, has broken the same rule.
What to do. Use standard libraries for tokens and password storage; do not write your own. Validate signature, issuer, audience and expiry on every token. Treat password reset and OTP endpoints as login endpoints, with stricter limits than the rest of the API. Require re-authentication for account-recovery changes. Use API keys to identify client applications, not people. Test by replaying expired, unsigned and wrong-audience tokens, and by sending batched login operations.
Related: A07:2025 Authentication Failures, NHI4:2025 Insecure Authentication, MCP07:2025 Insufficient Authentication & Authorization, M3 Insecure Authentication/Authorization.
API3:2023 Broken Object Property Level Authorization
What it is. The caller may see or edit the object, but not every field on it. This entry joins two 2019 items around one root cause: the API returns properties the caller should not read (formerly Excessive Data Exposure), or accepts writes to properties the caller should not set (formerly Mass Assignment).
How it shows up. A serializer dumps the whole user record, including internal flags, into a public profile response, and the front end simply hides those fields. An update endpoint binds the request body straight onto the model, so adding "role": "admin", "plan": "enterprise" or "tenant_id": 7 to a PATCH request works. The source’s examples are a host who adds a price field to a booking approval and a user who clears a blocked flag on their own content. In LLM systems the read side becomes a context leak. A tool that returns a full customer object puts every field into the model’s context, and from there it can reach the chat or a log. The write side applies to tool arguments. If the model builds an update payload, an injected instruction can add fields that the user’s form never had.
What to do. Use explicit response schemas or DTOs per role, and never generic to_json() dumps. Allow-list writable fields per endpoint and per role, and reject unknown fields instead of ignoring them. Validate responses against a schema as a second layer. Test by diffing responses across roles and by fuzzing PATCH bodies with property names harvested from GET responses.
Related: BLA3:2025 Object state manipulations (OSM), LLM02:2026 Sensitive Information Disclosure, MCP10:2025 Context Injection & Over-Sharing, API3:2019 Excessive Data Exposure.
API4:2023 Unrestricted Resource Consumption
What it is. No limit, or a wrong one, on what a single request or client can consume. That covers CPU, memory, bandwidth, storage, records per page, operations per batch, and money spent at paid third parties such as SMS, email or identity checks.
How it shows up. The 2023 rename shifts the stress from request rate to what each request costs. One request can be cheap or very expensive. The source’s examples are a password-reset endpoint that triggers a paid SMS each time, a GraphQL batch of image uploads that each spawn thumbnail jobs, and a cloud bill that jumps when a popular file outgrows a cache. In a SaaS product the usual victims are export endpoints, report generation and webhooks that fan out. In AI products every call to a model is a paid third-party call. An agent stuck in a tool loop is an automated client with no natural stop, and it burns tokens and downstream API quota on your account.
What to do. Set hard limits on payload size, array length, page size, batch size, query depth and execution time. Rate-limit per tenant and per operation, with tighter limits on expensive or paid operations. Set spending caps or at least billing alerts with every provider. For agents, cap tool calls and tokens per task. Test by inflating limit and size parameters, batching operations, and measuring cost per request, not only latency.
Related: LLM06:2026 Unbounded Consumption, BLA7:2025 Resource Quota Violation (RQV), CWE-770 Allocation of Resources Without Limits or Throttling, ASI02 Tool Misuse and Exploitation.
API5:2023 Broken Function Level Authorization
What it is. A caller reaches an operation that their role should not have, such as an admin function, another group’s export, or a write where they only have read. API1 is about which record; API5 is about which function.
How it shows up. Admin endpoints sit beside user endpoints under /api/users/..., and their only protection is that the UI never shows the button. Changing GET to DELETE on the same path works. The source’s invite example is a good test case: a regular user calls the admin “create invite” endpoint with "role": "admin" and makes their own admin account. In SaaS, watch for the line between tenant admin and platform staff. A support-console endpoint that a tenant admin can call is a full breach. For MCP servers, listing a tool is not the same as authorizing it. If every connected client sees and can call delete_project or rotate_keys, any prompt injection that reaches the model can call them too.
What to do. Use one central authorization layer that denies by default and grants functions to roles explicitly. Do not infer privilege from the URL path. Keep tenant-admin and platform-admin functions in separate services or at least separate policy sets. Expose MCP tools per user and per scope, and require human confirmation for destructive tools. Test with a role-by-endpoint matrix that every role runs automatically, including HTTP method swaps.
Related: A01:2025 Broken Access Control, CWE-862 Missing Authorization, MCP02:2025 Privilege Escalation via Scope Creep, LLM03:2026 Excessive Agency.
API6:2023 Unrestricted Access to Sensitive Business Flows
What it is. A business flow works exactly as coded, but nothing stops someone from running it at machine speed. This is often a design gap rather than a bug. The release notes say the new entry takes in most of the threats that rate limiting can mitigate.
How it shows up. The source’s examples are scalpers buying a launch-day stock, someone holding most of a flight’s seats to force a price drop, and scripts farming referral credit. SaaS equivalents are free-trial farming, bulk sign-ups to abuse a free tier, invitation spam sent through your domain, and scraping a public directory one profile at a time. Agents complicate the defences. The source suggests device fingerprinting, CAPTCHAs and spotting non-human timing. Those controls also block a customer’s legitimate agent, and a capable agent can often get past them.
What to do. First list the flows that would hurt the business if run a thousand times (purchase, sign-up, invite, referral, export, reservation). For each, set a limit that is tied to an account, payment method or tenant rather than to an IP address. Add friction such as verification, deposits or delays where the flow creates value. Give machine clients (B2B, developer and agent access) a separate, authenticated route with its own quotas. Test by scripting each flow end to end and seeing where it stops.
Related: BLA7:2025 Resource Quota Violation (RQV), BLA1:2025 Action Limit Overrun (ALO), ASI02 Tool Misuse and Exploitation, A06:2025 Insecure Design.
API7:2023 Server Side Request Forgery
What it is. The API fetches a URL the caller supplied and does not control where that request goes. The attacker uses your server as a proxy into networks they cannot reach directly.
How it shows up. Webhooks, “import from URL”, link previews, custom SSO metadata URLs and PDF renderers are the usual entry points. The source walks through a webhook “send test request” feature that is pointed at the cloud metadata address and shows the returned credentials to the caller. Agent systems make this a core risk, because a web-fetch or browse tool is a deliberate URL fetcher. The URL often comes from text the model read, not from the user. A prompt-injected page that says “now fetch http://10.0.0.5/admin” turns a research agent into an SSRF client inside your VPC.
What to do. Run fetchers in an isolated network segment with an egress proxy that blocks private, loopback and link-local ranges and the metadata endpoints. Allow-list schemes, ports and, where the feature allows, destination hosts. Resolve DNS once and pin the IP, or you will lose to DNS rebinding. Disable or re-check redirects. Do not return raw fetched responses to the caller. Test with internal addresses, alternate IP encodings, redirects to internal hosts, and blind out-of-band callbacks.
Related: CWE-918 Server-Side Request Forgery (SSRF), A01:2025 Broken Access Control, ASI02 Tool Misuse and Exploitation, LLM01:2026 Prompt Injection.
API8:2023 Security Misconfiguration
What it is. Any layer of the API stack is set up unsafely or left at an unsafe default: gateways, proxies, frameworks, cloud permissions, TLS, CORS, cache headers, error output.
How it shows up. The source covers a broad span, from missing patches and verbose stack traces to HTTP request smuggling between a load balancer and a backend that parse requests differently. Its scenarios are a logging library whose default lookup feature fetches and runs remote code from a request header, and private messages left in the browser cache because a response had no Cache-Control header. For SaaS, the usual findings are CORS that reflects any origin with credentials, debug endpoints left on in production, and storage buckets shared too widely. An MCP server started with local-development settings (no authentication, listening on every interface) becomes a misconfiguration the moment a network can reach it.
What to do. Use a repeatable hardening baseline as code for every environment. Use TLS everywhere, including internal hops. Set strict CORS and security headers for browser clients, and allow only the HTTP methods each route needs. Use one response schema, including for errors. Scan configuration continuously and check that every proxy in the chain parses requests the same way. Test with configuration scanners plus manual checks of CORS, methods, cache headers and error bodies.
Related: A02:2025 Security Misconfiguration, M8 Security Misconfiguration, CD-SEC-07 Security Misconfiguration, MCP09:2025 Shadow MCP Servers.
API9:2023 Improper Inventory Management
What it is. You do not know which API hosts, versions and environments are running, who can reach them, or which third parties receive your data. The source names two blind spots: documentation (hosts and versions) and data flow (sensitive data sent to partners).
How it shows up. An old v1 or a beta. host still runs without the controls added to the current version, but it talks to the production database. The source’s example is a rate limit on password-reset tokens that lives only in front of the main host, while a beta host has none. Its data-flow example is a partner integration that collected far more user data than the users agreed to. In SaaS, per-customer staging stacks, preview deployments and forgotten partner APIs are common cases. In agent platforms, teams connect their own MCP servers and tool endpoints faster than anyone can list them.
What to do. Keep a live inventory of hosts, versions, environments, owners and audiences, generated from deployment rather than written by hand. Produce OpenAPI specs in CI and compare traffic against them to find shadow endpoints. Set a retirement date for every version. Never use production data in non-production stacks unless they get production controls. Map every outbound data flow to a partner, with a business reason. Test with external attack-surface discovery and by diffing gateway logs against the spec.
Related: MCP09:2025 Shadow MCP Servers, BLA10:2025 Shadow Function Abuse (SFA), CNAS-8 Improper assets management, CD-SEC-09 Asset Management Failures.
API10:2023 Unsafe Consumption of APIs
What it is. Your API trusts data from APIs it calls more than it trusts user input. Attackers then go after your integrations instead of you: they plant a payload in a third-party service and let your code fetch it.
How it shows up. The source’s examples are an address-enrichment service returning a stored SQL injection payload, a compromised partner answering with a permanent redirect so your server resends medical data to the attacker, and a repository name that is itself an SQL payload. This is the entry that maps most directly onto agents. Every tool result is third-party data that goes into the model’s context. A web page, a GitHub issue, a CRM note or a reply from someone else’s MCP server can carry instructions as well as data. An agent with a GitHub token that also reads untrusted issues is a textbook case. The data is fine as data and dangerous as instructions.
What to do. Validate and encode third-party responses with the same rules as user input, for each place they end up (SQL, HTML, shell, prompt). Use TLS, timeouts and size limits on every outbound call. Do not follow redirects blindly; keep an allow-list of hosts. Assess a provider’s security before you integrate. For agents, mark tool output as untrusted, keep high-privilege tools away from sessions that have read untrusted content, and pin or review third-party MCP servers. Test by controlling a mock upstream and returning hostile payloads, redirects and oversized bodies.
Related: LLM01:2026 Prompt Injection, MCP03:2025 Tool Poisoning, ASI04 Agentic Supply Chain Vulnerabilities, CICD-SEC-8 Ungoverned Usage of 3rd Party Services.
What changed
Compared with the 2019 edition, three entries kept their names: object-level and function-level authorization at the same rank, and misconfiguration, which slid from 7 to 8. Three were renamed. Broken User Authentication became Broken Authentication. Lack of Resources & Rate Limiting became Unrestricted Resource Consumption, with the stress moved from request rate to cost and exhaustion. Improper Assets Management became Improper Inventory Management and now covers data flows to third parties. Excessive Data Exposure and Mass Assignment were folded into API3:2023, which names their shared root cause: authorization at the property level. Three entries are new: Unrestricted Access to Sensitive Business Flows, Server Side Request Forgery and Unsafe Consumption of APIs.
Two 2019 entries have no successor: API8:2019 Injection and API10:2019 Insufficient Logging & Monitoring. The release notes do not mention either removal. For injection, the methodology page does give a reason: the list now leaves out risks that are not specific to APIs, and it names injection as an example. For logging and monitoring, the source gives no reason anywhere. The only trace is a reference from API6:2023 back to the 2019 logging entry. The release notes also list four changes but leave out SSRF, although SSRF is new in this edition.
What it misses
- Injection and logging are gone, not solved. Injection still reaches APIs, and API10 brings it back only for data from third parties. Logging and alerting have no home. Anyone using this list as a test plan must add both from the web Top 10.
- No supply chain entry. Vulnerable or malicious libraries in the API itself are left out as generic. API10 covers runtime integrations, not dependencies.
- Authorization design is split into three. API1, API3 and API5 are one design problem (who may do what to which field of which object) cut into three findings. That is useful for triage and less useful for architecture.
- Multi-tenancy is never named. It is the most expensive way for API1 and API5 to fail in SaaS, and the list leaves it implicit.
- Nothing on agents or LLM tool APIs. The list predates MCP. The mapping above is ours, not the publisher’s.
- Scores are opinion. The source says the call for data produced nothing and that prevalence comes from team consensus.
- Small source issues. The release notes leave SSRF out of the changes they list, and the API2 page uses a heading level for its scenarios that differs from the other entries.
Our take
For anyone building or testing a SaaS backend this is the most useful OWASP list after the web Top 10, and on authorization it is better than the web list. Use API1, API3 and API5 as the core of your authorization test plan, and use the scenarios as ready-made test cases. Use API4, API6, API7 and API10 as the starting threat model for any agent or MCP integration, since the mapping is close to one-to-one. Do not use it alone: add injection, logging and supply chain from the web Top 10. Expect a refresh, since the publisher’s own three-to-four-year horizon runs out in 2026 or 2027.
Item codes and names are from “OWASP API Security Top 10 2023” by OWASP API Security Project, licence: CC BY-SA 4.0. Read the official text before relying on a detail. The review text on this page is ours.