OWASP Top 10 for LLM Applications (2026): Practical Security Guide for AI Developers

Published
Last updated
9 min read
Table of contents
OWASP Top 10 for LLM Applications 2026 graphic: Prompt Injection, Sensitive Information Disclosure, Excessive Agency, and Hidden Context Exposure beside a purple LLM shield

Introduction

Building AI features into a web app—whether a customer support chatbot, a retrieval-augmented generation (RAG) search bar, or an autonomous coding or workflow agent—changes your application’s threat model. Unlike classic SQL queries where code and data stay separated by parameterized bindings, a large language model reads system instructions, user messages, retrieved documents, and tool outputs as a single stream of tokens. As of November 25, 2026, the official baseline for engineering teams is the OWASP Top 10 for LLM Applications 2026 published by the OWASP GenAI Security Project at genai.owasp.org.

This guide walks developers through all ten entries of the 2026 OWASP Top 10 for LLM Applications, explains what changed from the 2025 edition, connects them to the companion OWASP Top 10 for Agentic Applications (2026) and Agent Control Standard (ACS), and turns each risk into concrete engineering guardrails you can enforce outside the model.

Key Facts: OWASP Top 10 for LLM Applications 2026

  • Current official edition: OWASP GenAI LLM Top 10 2026 (released August–September 2026), replacing the 2025 edition as the latest release.
  • Evidence-backed ranking: For the first time, OWASP combined practitioner votes (75% weight) with empirical analysis of 7,714 real AI security and harm records—6,639 with enough detail to classify (25% weight).
  • Biggest shifts in 2026: LLM03:2026 Excessive Agency jumped from #6 to #3 as agentic tool use entered production; LLM06:2026 Unbounded Consumption rose four spots; LLM07:2026 Misinformation climbed because real incident records showed frequent harm; and 2025’s System Prompt Leakage evolved into LLM08:2026 Hidden Context Exposure.
  • Core design rule: OWASP’s project leads state it plainly—stop trying to build a model that cannot be fooled, and build the surrounding system so nothing critical breaks when it is.
  • Companion agentic standards: Pair the LLM Top 10 with the OWASP Top 10 for Agentic Applications (ASI01–ASI10) and the Agent Control Standard (ACS) when models invoke MCP servers, APIs, or sub-agents.

What Changed in the 2026 OWASP Top 10 for LLM Applications?

In the 2025 edition, rankings came purely from expert consensus. In 2026, the OWASP GenAI Security Project tested that consensus against thousands of real-world disclosures and AI incident reports. Two findings stood out:

  1. Agentic permissions are where real damage lands. When an LLM only writes chat text, a bad answer is embarrassing. When it holds OAuth tokens, SQL tools, email connectors, or shell access, a fooled model triggers unauthorized actions—pushing Excessive Agency to #3.
  2. Hidden operational context is broader than a single system prompt. Modern apps pack tool schemas, policy rules, tenant metadata, and workflow logic into non-user-visible context. LLM08:2026 Hidden Context Exposure reflects that wider surface.

All 10 Risks in the OWASP Top 10 for LLM Applications (2026)

RankID & Risk NameCore Developer Failure ModePrimary Defense Pattern
1LLM01:2026 Prompt InjectionDirect, retrieved, or tool inputs hijack model behavior across one token streamAssume inputs are untrusted; isolate privileges and validate actions outside the LLM
2LLM02:2026 Sensitive Information DisclosureModel leaks PII, secrets, private docs, or reasoning traces in outputScrub training/RAG data, enforce per-user ACLs, redact outputs
3LLM03:2026 Excessive AgencyModel has overly broad tools, write permissions, or autonomous executionLeast agency, narrow tool scopes, deterministic auth, human approval
4LLM04:2026 Supply ChainCompromised weights, LoRAs, dependencies, MCP servers, or datasetsVerify signatures/provenance, pin packages, maintain an AI BOM
5LLM05:2026 Data and Model PoisoningAttacker corrupts pre-training, fine-tuning, or RAG/memory storesVet data provenance, restrict write paths to RAG/memory, monitor drift
6LLM06:2026 Unbounded ConsumptionAttackers trigger runaway token, GPU, or API billing (Denial of Wallet)Strict per-user rate limits, token/step budgets, timeout caps
7LLM07:2026 MisinformationHallucinated or confidently wrong outputs drive bad code or decisionsGround with verified retrieval, show citations, gate high-stakes actions
8LLM08:2026 Hidden Context ExposureExtraction of non-user-facing system instructions, tool schemas, or rulesKeep secrets and auth logic completely out of prompts
9LLM09:2026 Vector and Embedding WeaknessesUnfiltered RAG retrieval leaks cross-tenant chunks or accepts poisoned vectorsEnforce tenant ACLs at vector query time; validate ingested documents
10LLM10:2026 Improper Output HandlingModel output passed unescaped into HTML, SQL, shells, or APIsTreat LLM text like untrusted user input; encode, parameterize, validate schemas

Deep Dive: The Top Risks Developers Hit First

LLM01:2026 Prompt Injection and LLM08:2026 Hidden Context Exposure

LLMs make no architectural separation between developer instructions and untrusted data. Whether an attacker types an override directly into chat (direct injection) or hides white-text commands inside an HTML page, PDF, email, or MCP tool response that your assistant reads (indirect injection), both enter the same context window. Persistent memory and RAG stores worsen this because a single poisoned note can taint future sessions.

Teams often try to fight prompt injection by writing stricter rules in the system prompt (“Never reveal internal policies or API keys”). LLM08:2026 Hidden Context Exposure explains why that fails: attackers routinely extract or infer system instructions, refusal triggers, and tool schemas. Never store API keys, database credentials, or authorization rules in a system prompt. Enforce access control in deterministic backend code before the model ever runs or sees data.

LLM02:2026 Sensitive Information Disclosure and LLM09:2026 Vector and Embedding Weaknesses

In RAG applications, a vector database does not automatically know which user is asking a question. If your pipeline embeds documents from HR, finance, and public help pages into one index and runs a bare similarity search on the user’s prompt, LLM09 and LLM02 turn into an instant cross-tenant data leak. Always pass the authenticated user’s permissions as mandatory metadata filters into the vector store query before retrieved chunks enter the model’s context window, and apply data-loss prevention (DLP) scanning on outputs.

LLM application trust boundaries diagram showing untrusted inputs, shared context window, output guardrails, and least-agency tool gates
Because instructions and data share one token stream inside the context window, security controls must live around input filtering, output validation, and deterministic tool gates.

LLM03:2026 Excessive Agency and the OWASP Agentic Top 10

Whenever you connect an LLM to functions, webhooks, or third-party Model Context Protocol (MCP) servers, LLM03:2026 Excessive Agency becomes your highest-impact operational risk. A model tricked by an indirect prompt injection inside an incoming ticket or webpage can abuse any tool you handed it.

To align with the OWASP Top 10 for Agentic Applications (2026) (ASI01 Agent Goal Hijack through ASI10 Rogue Agents) and OWASP’s Agent Control Standard (ACS):

  • Practice least agency: Do not give an app autonomous multi-step tool execution if a deterministic workflow or read-only lookup works.
  • Scope tokens per user, not per service: Use the end user’s scoped OAuth permissions rather than a global admin service account.
  • Require human-in-the-loop confirmation for irreversible actions—sending external messages, deleting records, changing permissions, or spending money.
  • Enforce runtime policy hooks outside the model so a compromised prompt cannot invoke disallowed parameters or unapproved hosts.

LLM04:2026 Supply Chain and LLM10:2026 Improper Output Handling

AI applications pull from huge dependency trees: open-weight model checkpoints, fine-tuning adapters, Python/npm inference wrappers, prompt templates, and external MCP servers. OWASP recommends tracking an AI Bill of Materials (AI BOM), verifying model artifact hashes, and auditing third-party MCP connectors before giving them data access. This echoes the software supply-chain risks we cover in AI malware risks from LLM-generated code.

Equally classic—and often overlooked—is LLM10:2026 Improper Output Handling. If your backend takes LLM-generated Markdown, HTML, SQL, or shell commands and renders or executes them without sanitization, a prompt injection immediately turns into stored XSS, SQL injection, or remote code execution. Validate outputs against strict JSON schemas, encode HTML, use parameterized SQL queries, and maintain a strong Content Security Policy in the browser.

LLM06:2026 Unbounded Consumption and LLM07:2026 Misinformation

LLM06:2026 covers both traditional denial of service and “Denial of Wallet”—attacks that feed worst-case context lengths, trigger recursive agent loops, or spam expensive vision/reasoning calls until API budgets evaporate. Cap max_tokens, limit agent tool iterations per request, enforce per-tenant quotas, and alert on spend spikes. For LLM07:2026 Misinformation, avoid letting unverified model prose directly trigger financial, medical, or infrastructure changes without deterministic verification or human review.

Practical Pre-Launch Checklist for AI Developers

  1. Strip secrets from prompts: Confirm zero credentials, internal hostnames, or bypass rules sit inside system instructions.
  2. Filter RAG queries by user ACL: Verify every vector search enforces caller authorization in database filters, not prompt text.
  3. Restrict tool schemas: Expose read-only tools by default; gate state-changing actions behind deterministic policy checks and explicit user confirmation.
  4. Sanitize all model outputs: Apply strict JSON schema validation, HTML escaping, and parameterized queries—never eval() or raw string SQL.
  5. Enforce token, step, and cost caps: Set hard limits on request size, agent loop depth, and concurrent calls per user.
  6. Inventory models and MCP servers: Pin versions, verify artifact provenance, and pair web endpoints with classic OWASP Top 10 and WAF protections.

FAQ

Is the OWASP Top 10 for LLM Applications 2026 still the 2025 list?

No. The OWASP GenAI Security Project released the 2026 Top 10 for LLM Applications in August–September 2026, updating rankings using both practitioner votes and 6,639 classified real-world AI incident records.

How does the OWASP Top 10 for LLM differ from the OWASP Top 10 for Agentic Applications?

The OWASP Top 10 for LLM Applications focuses on risks in LLM-powered apps (LLM01–LLM10), while the OWASP Top 10 for Agentic Applications (2026) (ASI01–ASI10) drills deeper into autonomous multi-step agents—covering Agent Goal Hijack, Tool Misuse, Identity & Privilege Abuse, Memory Poisoning, and Rogue Agents.

Can prompt engineering or guardrails alone stop Prompt Injection?

No. Because LLMs process instructions and untrusted data in the same token stream, OWASP emphasizes that no prompt phrasing guarantees immunity. Input filtering helps reduce noise, but real safety comes from least-privilege tool scoping, output validation, and deterministic authorization outside the model.

Why did System Prompt Leakage become Hidden Context Exposure in 2026?

Modern AI apps place much more than a static system prompt inside hidden context—including tool definitions, developer policies, user metadata, and intermediate workflow instructions. LLM08:2026 Hidden Context Exposure captures that broader leakage risk.

What does LLM10:2026 Improper Output Handling prevent?

It prevents downstream security vulnerabilities—such as XSS, SSRF, SQL injection, or arbitrary code execution—caused by trusting model output as safe code or commands rather than validating and encoding it like untrusted user input.

Conclusion

The 2026 OWASP Top 10 for LLM Applications marks a shift from theoretical prompt tricks to system-level engineering discipline. Treat the model as an untrusted component that will occasionally be fooled: keep secrets out of context, filter RAG data by caller permissions, constrain tool agency, cap consumption, and validate every output before it touches a browser, database, or shell.

References

All references below were verified on November 25, 2026.

Last Verified: November 25, 2026. Prepared by SafeWebAcademy from official OWASP GenAI Security Project publications linked above. AI security frameworks evolve rapidly; check genai.owasp.org for updates before major architecture reviews.

Related articles

Jenkins Security Update: Pipeline Sandbox Bypass and 10 More Plugin Flaws Fixed

The Jenkins security update of November 25, 2026, fixes 11 plugins, including sandbox bypasses in Pipeline: Groovy (CVE-2026-136834) and Script Security. See affected and fixed versions and how to patch.

Laravel Security Update: Fix the JSON Request DoS (GHSA-8h64-cpq2-9h2g)

A Laravel security update fixes GHSA-8h64-cpq2-9h2g, a high-severity DoS where crafted JSON can exhaust PHP workers. Learn who is affected and how to update to 13.38.0 or 12.74.0.

GeoServer Security Update: CVE-2026-120705 and CVE-2026-129243 Added to CISA KEV

The GeoServer security update closes a five-step attack chain, and CISA added CVE-2026-120705 and CVE-2026-129243 to KEV on November 27, 2026. Upgrade to 3.0.2, 2.28.6 or 2.27.7.

Symfony Security Update: 23 CVEs Fixed in 8.1.12, 7.4.24, 6.4.51 and 5.4.57

The Symfony security update of November 25, 2026 fixes 23 CVEs, six rated high, in HttpClient, ExpressionLanguage, Serializer and more. Update to 8.1.12, 7.4.24, 6.4.51 or 5.4.57.

Drupal CVE-2026-136716: Patch the Installer Access Bypass (SA-CORE-2026-019)

Drupal CVE-2026-136716 (SA-CORE-2026-019) is a highly critical installer access bypass exploited in the wild. Update to 11.4.14, 11.3.23 or 10.6.23, run update.php and check user 1.

Nginx CVE-2026-132779: ssl_early_data CPU Flaw Fixed in 1.30.8 and 1.31.10

Nginx CVE-2026-132779 lets a crafted TLS 1.3 early data connection pin a worker at 100% CPU. Learn who is affected and how to fix it with nginx 1.30.8 or 1.31.10.

CVE alerts

Get a short note when a new vulnerability write-up is published. No third-party script is loaded.