diffox
Blog

OWASP LLM Top 10 2026: ten risks to spot in a PR

What changed in the OWASP LLM Top 10 2026, how is it different from the Agentic Top 10, and how does each risk show up in a pull request? Read at the source.

ShareXLinkedIn

Summary. OWASP is a nonprofit foundation that works on software security, best known for the OWASP Top 10, its list for web applications. The foundation’s GenAI Security Project also publishes a list for applications built on language models: the OWASP Top 10 for LLM Applications. On 4 November 2026 we read the 2026 edition of that list in the project’s GitHub repository and in its PDF, and looked at the 2025 edition and OWASP’s other AI lists on their own pages. From each risk’s mitigation section, we worked out which lines in a pull request deserve a closer look.

  • Excessive Agency climbed from 6th to 3rd. According to the project leads, the votes and the incident records agree that agents are where most of the damage happens; Improper Output Handling fell from 5th to 10th.
  • Incident data shaped the ranking for the first time. Practitioners’ votes carry 75% of the weight and data from 6,639 real incidents carries 25%; prompt injection held first place on the strength of the votes.
  • Most of the risks show up as a line in the diff. A few of them: a refund or delete permission added to a tool, model output sent into SQL, a token limit deleted, a vector search with no customer filter.
  • Misinformation and data poisoning don’t show up in the diff. For those, OWASP recommends grounding, testing, red teaming and monitoring; a code review can still catch code that acts on the model’s claim without checking it.

What is OWASP, and who writes the LLM Top 10?

6,639real incidents fed into the ranking as data (out of 7,714 records)
75%of the ranking’s weight is the vote; the other 25% is incident data
3rdExcessive Agency’s new rank (6th in 2025)
10thImproper Output Handling’s new rank (5th in 2025)

In the post on reviewing AI-generated code we looked at the code an agent writes, and in the MCP security and workspace trust posts at the files an agent reads in a repository. This post looks at the application itself, the one that calls a language model: which risks are on OWASP’s 2026 list, and how does each one show up in a pull request?

OWASP, short for Open Worldwide Application Security Project, is a nonprofit foundation that works to improve the security of software. It started as a project in 2001 and was incorporated as a foundation in the United States in 2004. Its projects, tools and documents are free and open to everyone; according to its own page, it has more than 275 open-source projects run by volunteers and more than 250 local chapters around the world. Its best-known work is the OWASP Top 10: a ranking of the most critical security risks to web applications and, in OWASP’s own words, a standard awareness document for developers. The latest edition is the OWASP Top 10 2025. The lists on the AI side come from the OWASP GenAI Security Project, inside the foundation.

The OWASP Top 10 for LLM Applications is this project’s list of risks for applications built on language models. The project started in 2023, and according to its GitHub repository, the 2026 edition was published on 4 August 2026. Until now, the list has always been ranked by practitioners’ votes. In 2026, the project checked that vote against incident records for the first time: according to the preface, they collected 7,714 incidents from public vulnerability databases and an AI harm database, and sorted the 6,639 with enough detail to classify into the risks. In the final ranking, the vote carries 75% of the weight and the incident data 25%. These figures are the project’s own measurement.

How did the ranking change in 2026?

The vote and the data didn’t agree everywhere, and the ranking moved more than in past years:

3rd place for Excessive Agency. It was 6th in 2025. The preface calls it the most important change on the list. 1. Prompt Injection. Still first, thanks to the vote. 6. Unbounded Consumption. Was 10th; the biggest climb. 8. Hidden Context Exposure. The new name for System Prompt Leakage; was 7th. 10. Improper Output Handling. Was 5th; the biggest fall.
Source: the 2026 preface in the project’s GitHub repository and the 2025 list, 4 November 2026. Where the other items stand is in the table below.

The preface calls Excessive Agency’s rise the most consequential move on the list, and gives the reason in one sentence: the votes and the incident records agree that the damage lands in systems that work as agents. By the item’s definition, Excessive Agency is what lets an unexpected, ambiguous or manipulated output from the model turn into a damaging action. Why the model got it wrong doesn’t matter; it could be a hallucination or a prompt injection. If a model can send email, write to a database or refund money, a wrong answer doesn’t stay in the chat window.

Improper Output Handling fell the furthest, but its scope widened the same year: according to the preface, it now also covers the insecure code that coding assistants generate at scale. Other items grew too. Prompt Injection now takes in instructions hidden in an image or in audio, Supply Chain takes in model files that aren’t what they claim to be, and Data and Model Poisoning takes in the abuse of fine-tuning. Here is where each item stands in 2026 and where it stood in 2025:

The items of the OWASP LLM Top 10 2026, with a short description and their place on the 2025 list
ItemRiskWhat it meansIn 2025
LLM01Prompt InjectionSomething the model reads (a user message, a web page, a tool’s output, an image) turns its behaviour in a direction the developer didn’t intend.LLM01
LLM02Sensitive Information DisclosureConfidential or personal data leaves through a channel that isn’t allowed: an answer, a tool argument, a log, an embedding.LLM02
LLM03Excessive AgencyThe model has more tools, permissions or autonomy than it needs; a wrong output turns into a damaging action.LLM06
LLM04Supply ChainA model, adapter, dataset or package has been tampered with or comes from an unverified source.LLM03
LLM05Data and Model PoisoningA lasting backdoor or bias is slipped into training, fine-tuning or RAG data.LLM04
LLM06Unbounded ConsumptionRequests have no limit on tokens, time or cost; the service goes down or the bill balloons.LLM10
LLM07MisinformationA wrong but convincing answer turns into a decision, a step in a workflow or an agent’s action.LLM09
LLM08Hidden Context ExposureContext the user never sees, such as the system prompt and tool schemas, is exposed and shows an attacker the way in.LLM07 (System Prompt Leakage)
LLM09Vector and Embedding WeaknessesA similarity search reaches another customer’s documents, text is recovered from embeddings, RAG is poisoned.LLM08
LLM10Improper Output HandlingModel output goes to a shell, SQL, a browser or a terminal without being validated.LLM05

Source: the 2026 texts in the project’s GitHub repository and the 2025 list, 4 November 2026. The names are OWASP’s own; we shortened the descriptions from each item’s definition. The list’s 122-page PDF is on its page at genai.owasp.org.

Which OWASP list covers what?

The OWASP GenAI Security Project has more than one list for AI. The 2026 preface draws the line clearly: this list covers the case where the model is a component inside your application. The moment the model becomes an actor, with tools it can call, memory it carries between sessions and actions it sets in motion, the risk moves to the OWASP Agentic Top 10. According to the preface, many of the incidents they read sit right on that line; if your model acts on its own, read both lists together.

OWASP’s AI risk lists: their status, what they cover and when to read them
ListStatusWhat it coversWhen to read it
OWASP Top 10 for LLM Applications 2026Published, 4 August 2026The model inside the application: its input, context, output, data and costIf your application calls a language model
OWASP Top 10 for Agentic Applications 2026Published, 9 December 2025The agent that plans, decides and calls tools: from ASI01 Agent Goal Hijack to ASI10 Rogue AgentsIf your model calls tools, carries memory or talks to other agents
OWASP MCP Top 10BetaMCP servers and their tools: tokens, tool poisoning, command execution, shadow serversIf you connect MCP servers to your agent
OWASP Agentic Skills Top 10Draft, in public reviewThe skills of AI agentsIf you write or install skills; its items are not yet a published list

Source: the lists’ own pages and repositories, 4 November 2026. The MCP Top 10 numbers its items in the form “MCP01:2025”. The Agentic Skills Top 10 is an Incubator project at OWASP; it plans its v1.0 release for the last quarter of 2026.

The two lists are linked. According to the Excessive Agency item, in agentic systems this risk shows up as ASI02 Tool Misuse & Exploitation, ASI03 Identity & Privilege Abuse and ASI08 Cascading Failures. The 2026 list’s mapping appendix ties each item to the Agentic list and also to frameworks such as NIST, MITRE ATLAS and CWE; one of the Excessive Agency examples in that appendix is a coding agent whose excessive autonomy and permissions destroyed production infrastructure. We covered the MCP list in detail in the MCP security post, and the settings that limit a coding agent’s permissions in the auto mode and sandbox post.

OWASP also has a checklist: the LLM Applications Cybersecurity and Governance Checklist (v1.1, May 2024). It is a governance list written for leaders and for legal, compliance and security teams. What to look for in a pull request is in each item’s own mitigation section; the next two sections are drawn from those.

What should you look for on the input side of a pull request?

The preface sums up the whole list in its opening lines: stop trying to build a model that cannot be fooled, and build the system so that when the model is fooled, nothing important breaks. That system is where you look in a pull request too: the code that builds the prompt, the tools given to the model, the place the output goes. In the made-up example below, a single diff carries the traces of 6 risks:

EXAMPLE. 6 risks in one diff. support_bot.py · diff:  def answer(note, question, customer_id): / -    tools = [search_orders] / +    tools = [search_orders, refund_order, run_sql] / +    system = "You are a support bot. Note: " + note / +    docs = index.query(embed(question), k=20) / -    reply = llm.chat(system, max_tokens=800) / +    reply = llm.chat(system, question, docs, tools) / +    log.info("prompt=%s reply=%s", system, reply) / +    db.execute(f"UPDATE orders {reply.sql}"). refund_order, run_sql: LLM03 · An order-lookup bot can now refund and run any SQL. + note: LLM01 · The customer’s note is pasted into the instructions. index.query: LLM09 · customer_id never reaches the search. max_tokens=800: LLM06 · The deleted line took the answer’s limit with it. log.info: LLM02 · The prompt and the answer go to the log as they are. reply.sql: LLM10 · The SQL the model wrote runs as it is.
A made-up example; the function and tool names are illustrative. Each marked line is covered below and in the next section.

None of these lines looks dangerous on its own; the danger is in what the model can do once they come together. On the input side, the risks are these:

  • LLM01 Prompt Injection. According to OWASP, a language model can’t tell instructions from data, since both are tokens on the same stream; so there is no equivalent of SQL’s parameterized queries, and no reliable way to prevent it exists today. One of the routes OWASP describes concerns you directly: an attacker slips text in through a low-privilege channel, such as a form, a support ticket or a community pull request, and waits for a privileged agent to read it. In the diff, stop at the line where outside text (a user message, an issue, a web page, a RAG chunk) is added to the same string as the system instructions. OWASP recommends passing outside content through a separate channel labelled with its source, but also writes that this doesn’t hold against an attacker who knows the defense. The real protection is on the output side: what the model can touch.
  • LLM08 Hidden Context Exposure. The item asks you to design on the assumption that the system prompt, developer instructions and tool schemas can be discovered. Look for two things in the diff: a credential, connection string or token going into the system prompt, and an authorization rule written into the prompt (“only show billing details to admins”). OWASP’s advice is plain: don’t leave authorization and role separation to the model; enforce them in deterministic, auditable code.
  • LLM02 Sensitive Information Disclosure. OWASP counts as a disclosure surface not only the model’s answer but also tool-call arguments, reasoning traces, retrieved chunks, logs and telemetry; it also notes that observability tools record the full prompt and answer by default. In the diff, stop at code that adds a customer’s whole record to the prompt, and at a line that writes the full prompt or answer to a log. OWASP’s advice: send an outside provider only the fields the task needs, scrub logs and traces before they reach the observability tool, and never put a secret in the system prompt.
  • LLM09 Vector and Embedding Weaknesses. According to the item, in a multi-tenant RAG the similarity search often runs over the whole index, with access control applied afterwards in the application layer; without seeing another customer’s documents, an attacker can infer that they exist and what they are about from result counts, scores and timing. In the diff, look for a query that applies the customer filter after the search rather than inside it, a scope parameter that comes from the client, and raw similarity scores returned to the client. OWASP puts it in one short sentence: a scope the client sends is a suggestion, not a control.
  • LLM04 Supply Chain. The models, adapters and packages that go into the application are input too. The concrete signs OWASP gives: a pipeline that pulls a model by a mutable reference such as latest instead of an immutable digest, or by its Author/ModelName name alone, and formats such as Python pickle that can run code when they load. There is one more sign specific to coding assistants: they make up package names that don’t exist, and attackers register those names in advance. OWASP recommends checking that a dependency an AI suggested really exists and is the package you meant before you add it; every new line in the lock file is the right place to check.

What should you look for on the output and permissions side?

If you can’t fully filter the input, the defense is on the output side: what the model can touch, where its output goes and how much it can spend. According to OWASP, most of the severe prompt injection incidents on record became severe because the fooled model could act on the attacker’s behalf through its tools, its permissions or the way its output was rendered.

  • LLM03 Excessive Agency. OWASP splits the root cause into three and gives an example of each. Excessive functionality: an agent that only needs to read documents gets a tool that can also change and delete them. Excessive permissions: a tool meant to read data connects to the database with an identity that has UPDATE, INSERT and DELETE rights on top of SELECT. Excessive autonomy: a tool that deletes a user’s documents does so without asking for confirmation. In the diff, stop at every tool added to the tool list, every permission that grows (write, delete, merge, payment) and every confirmation step that is removed. OWASP recommends leaving the decision to allow an action to code, not to the model: what can be undone may go through on its own, and what can’t goes to a person. In the item’s example, a customer service bot issues a refund as store credit by itself, while an external payout goes through human approval. We asked the same question about coding agents’ rights to run commands, push and deploy in the auto mode and sandbox post.
  • LLM10 Improper Output Handling. The item tells you to treat the model like any other user and to read its output with zero trust. The signs are familiar: model output that reaches eval, exec or a shell, SQL the model wrote that runs without parameters, JavaScript or Markdown interpreted in the browser, a file path built from model output. The 2026 text adds two examples: ANSI escape sequences written to a terminal or log viewer, and Markdown images that a chat interface loads on its own; in the second, the image’s address can carry data from the conversation to the attacker’s server. Validating against a schema isn’t enough on its own: according to OWASP, a response that fits the schema can still carry a malicious SQL query; we explained what a schema does guarantee in the structured outputs post. The item’s last scenario concerns this blog’s readers too: an application that compiles and deploys code the model wrote without human review or security testing.
  • LLM06 Unbounded Consumption. According to OWASP, an attacker can make you run expensive computation with requests that cost them almost nothing. In the diff, look for a max_tokens that was deleted or raised, an agent loop with no timeout, step limit or recursion limit, and a rate limit that counts only requests. OWASP recommends limits based on tokens and estimated cost, a spending cap per user and per API key that cannot be overridden, and step, depth, time and cost limits for every agent run; the spending cap should be a mechanism that halts inference, not a warning. The item’s arithmetic shows why a per-request limit isn’t enough: as the context grows, the cost per turn climbs from about $0.001 on the first turn to about $0.50 by turn 100, and no single request hits the limit.

Putting the two sections together, these are the questions to ask of a pull request that touches an LLM application:

9 questions for a PR. First look at what goes into the model, then at what the model can touch. Is outside text inside the instructions?: LLM01 · A user message, issue, web page, RAG chunk. Is there a secret in the prompt or the log?: LLM02 · LLM08 · A token, connection string, customer record. Is an authorization rule written in the prompt?: LLM08 · Code enforces roles and access, not the model. Does the vector search filter by customer?: LLM09 · The filter belongs inside the search, not after it. Are the model and packages pinned?: LLM04 · A latest tag, a model pulled by name alone, pickle. Did the tools or permissions grow?: LLM03 · Write, delete, refund, merge; a human for the irreversible. Where does the model’s output go?: LLM10 · eval, a shell, SQL, innerHTML, a Markdown image. Are the limits in place?: LLM06 · Tokens, time, steps and a spending cap. Does code act directly on the model’s claim?: LLM07 · Check first, then act.
Source: the items of the OWASP LLM Top 10 2026 and their mitigation sections, 4 November 2026.

The reason for each question is in the items above, with OWASP’s own mitigations. We gave a more general list for any AI-written code in the review post; the questions here are for code that calls the model.

What can you do about the risks a diff doesn’t show?

Misinformation and data poisoning aren’t in the code; they are in the model’s answers and in its data. However carefully you read the diff, you won’t see them; still, part of the code touches them.

The heart of Misinformation is one sentence of OWASP’s: wrong output is trusted and acted upon. The preface singles this item out: the votes put it near the bottom, the incident record near the top; this is where vote and evidence part ways the most, and they part in the direction that does harm. A wrong answer doesn’t show in a diff; what shows is the code that acts on it. In one of OWASP’s examples, an agent reports that the nightly backup ran; it never did, and a later restore fails. OWASP recommends grounding the model’s claims in current, authoritative sources and a pattern it calls “Claim-Check-Act”: separate generation from execution, and verify the claim before acting on it. It also asks you to check a tool call’s arguments, authorization and preconditions before it runs. In the diff, the line to look at is the one that acts directly on the model’s claim. For the answer itself, OWASP recommends logging claims, evidence and outcomes, and regularly testing workflows against misleading scenarios.

In Data and Model Poisoning, what gets corrupted is the data the model learns from. According to OWASP, the system keeps looking as if it works, and fixing it may take revalidating the data, retraining the model or replacing it, rather than changing the code. In a study the item cites (Souly et al., 2025; not peer reviewed), 250 poisoned documents were enough to compromise models from 600 million to 13 billion parameters, regardless of the dataset’s size. Those documents never show up in a diff. That is why OWASP’s recommendations are on the data side: record where datasets and models come from in an ML-BOM, put the data under version control, monitor training loss and outputs for drift, and red-team with trigger prompts.

Code review still has a part to play. The first is the files that come with the model: OWASP asks you to treat chat templates, tokenizer configs, LoRA adapters and quantization files as security-relevant code, and to put them through signature, hash and diff checks before deploying; if these files live in the repository, they get read in the pull request. The second is the path the data takes: a workflow that takes data from a source anyone can write to, or that retrains itself on user feedback. In one of the item’s scenarios, the attacker needs no access to the infrastructure, only an ordinary user interface; for these loops, OWASP recommends validating incoming data and adding human oversight and rate limits.

Nor does a diff tell you whether your prompt injection defense holds. OWASP asks you to test a defense against attackers who have read it, and not to trust success claims measured only with fixed attack texts. In the study it cites (Nasr et al., 2025; not peer reviewed), fixed texts almost never got past most of 12 recent defenses, while adaptive attackers got past them more than 90% of the time. The open test sets OWASP suggests as a starting point are AgentDojo and JailbreakBench.

A code review bot falls under this list too. diffox has a model read a pull request’s description, commit messages and diff; in other words, it is an LLM application that reads text from outside. The preface’s approach applies to us as well. The model doing the review works on a copy of the pull request’s latest commit, exported to a folder of its own, with four tools that can only read: listing a folder, reading a file, searching text (grep) and searching file names (glob). It can’t write a file, run a command or open a path that leads out of that folder. Text the model writes that reaches our comment can neither open an HTML tag nor become a link; this rule stops a phishing link from appearing under our name and data from leaking through an image. diffox doesn’t approve pull requests and never blocks a merge; a review that has been fooled can touch neither your code nor the merge button.

Frequently asked questions

What is OWASP?

OWASP, short for Open Worldwide Application Security Project, is a nonprofit foundation that works to improve the security of software. It started as a project in 2001, and its projects, tools and documents are free and open to everyone. Its best-known work is the OWASP Top 10, in OWASP’s own words a standard awareness document for developers and web application security; the latest edition is from 2025 and opens with Broken Access Control. The OWASP LLM Top 10 is a separate list: it ranks the risks specific to applications built on language models, and the foundation’s GenAI Security Project writes it. The two complement each other; a web application that calls a model falls under both.

What is the OWASP LLM Top 10?

It is the OWASP GenAI Security Project’s ranking of the 10 most critical security risks in applications built on language models; its full name is the OWASP Top 10 for LLM Applications. The project started in 2023, and the latest edition is the 2026 one, published on 4 August 2026. The ranking comes from practitioners’ votes; in 2026, real incident records carried 25% of the weight for the first time. The PDF can be downloaded from its page on genai.owasp.org, and the Markdown source is in the 2026/final folder of the GenAI-LLM-Top10 repository on GitHub.

What changed in the 2026 list?

Excessive Agency climbed from 6th to 3rd; the project leads put this down to the votes and the incident records both showing the damage in agents. Unbounded Consumption rose from 10th to 6th, and Improper Output Handling fell from 5th to 10th. System Prompt Leakage became a broader item named Hidden Context Exposure. Prompt Injection and Sensitive Information Disclosure kept the top two places. Some items also grew: Prompt Injection now covers instructions hidden in images and audio, and Improper Output Handling the insecure code that coding assistants produce.

How is the OWASP LLM Top 10 different from the Agentic Top 10?

The LLM Top 10 covers the case where the model is a component inside your application. According to the 2026 preface, once the model becomes an actor, with tools it can call, memory it carries between sessions and actions it sets in motion, the risk moves to the OWASP Top 10 for Agentic Applications. The Agentic list was published on 9 December 2025, and its items are numbered ASI01 to ASI10, from Agent Goal Hijack to Rogue Agents. If your model acts on its own, the preface says to read both lists together; neither covers that ground alone.

What happened to System Prompt Leakage?

System Prompt Leakage, the 7th item on the 2025 list, became Hidden Context Exposure in 2026 and moved to 8th place. The new item covers not only the system prompt but all the context the model sees and the user doesn’t: developer instructions, policy text retrieved through RAG, tool and function schemas. The advice stayed the same: assume this context can be discovered, put no credentials or tokens in it, and leave authorization to code, not to the model.

Why is prompt injection still number one?

Because practitioners rank it the number one risk, and the votes carry most of the weight in the ranking. The 2026 preface also says something striking: if the categories were ranked by the public incident record alone, prompt injection wouldn’t even make the top 10. The project leads call this a defense effect: teams fight injection so hard that fewer clean exploits reach a public database. The attack surface, though, is everywhere a model reads untrusted input. According to OWASP, no reliable way to prevent it exists today; the defense is an architecture that limits the damage when the model is fooled.

Can an AI code review tool catch these risks?

A code review, by a person or by an AI, can only see a risk that leaves a trace in the diff and the repository; it can’t see a wrong answer or poisoned data, and for those OWASP recommends testing and monitoring. diffox’s review looks for what the change breaks; on the security side, it checks whether unvalidated input reaches a file, a query or a command, and whether authorization is missing. It posts its findings on the pull request as comments and never blocks a merge.