Manuscript Offprint

arXiv:2609.03999

Shifting from Injection to Interaction: Rethinking Web Security in the Age of LLMs and Beyond

Nivedita Singh, Alsharif Abuadbba, Yansong Gao, Surya Nepal, Hyoungshick Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

NIVEDITA SINGH, Sungkyunkwan University, South Korea

ALSHARIF ABUADBBA, CSIRO, Australia

YANSONG GAO, The University of Western Australia, Australia

SURYA NEPAL, CSIRO, Australia

HYOUNGSHICK KIM*, Sungkyunkwan University, South Korea

Large language models (LLMs) are becoming integral to web applications and browser agents, transforming online interactions while introducing new attack vectors and reshaping longstanding web vulnerabilities. Classical threats such as cross-site scripting (XSS) can be amplified through LLM-mediated interactions, while LLM-specific vulnerabilities can propagate across web applications, introducing attacks such as prompt injection. Securing modern web systems therefore requires understanding interactions between traditional and LLM-specific threats across the system lifecycle. Unlike prior surveys treating web and LLM security separately, this survey provides a unified analysis of how LLMs amplify web vulnerabilities across client-side, server-side, and pipeline layers while evaluating defenses and their limitations. The analysis examines extending NIST and ISO/IEC AI security frameworks to the security needs of LLM-enabled web environments. Three unresolved challenges are identified: adversarial natural-language instructions, autonomous agent security, and post-deployment security through continuous monitoring and adaptation. An LLM-aware monitoring and control framework is proposed, integrating semantic input validation, prompt integrity protection, output isolation, agent governance, and runtime monitoring. This unified perspective characterizes the evolving threat landscape and outlines future directions for secure AI-enabled web systems.

CCS Concepts: • Security and privacy → Web application security.

Additional Key Words and Phrases: Large Language Models; Web Ecosystem Security; Prompt Injection; Vulnerability Amplification; OWASP Top 10

ACM Reference Format:

Nivedita Singh, Alsharif Abuadbba, Yansong Gao, Surya Nepal, and Hyoungshick Kim. 2026. Shifting from Injection to Interaction: Rethinking Web Security in the Age of LLMs and Beyond. ACM Comput. Surv. 1, 1 (September 2026), 35 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

Whether automating software development tasks or generating multimedia content, large language models (LLMs) have become indispensable tools that can process natural-language prompts and deliver rapid, highly capable results [153]. LLMs are fundamentally reshaping how users interact with online services [132] through their rapid integration

Authors' Contact Information: Nivedita Singh, singhnivvy@g.skku.edu, Department of Computer Science, Sungkyunkwan University, Suwon, South Korea; Alsharif Abuadbba, CSIRO, Australia; Yansong Gao, The University of Western Australia, Australia; Surya Nepal, CSIRO, Australia; Hyoungshick Kim, hyoung@skku.edu, Department of Software, Sungkyunkwan University, Suwon, South Korea.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

Figure

Fig. 1. Architecture of an embedding inversion attack on a language model API. By eavesdropping on vector search queries, an adversary can reconstruct sensitive personal data from intercepted embeddings, illustrating how backend pipeline vulnerabilities directly compromise client-level privacy. Adapted from Chen et al. [19] under CC BY 4.0; icons and presentation modified by the authors.

into web applications and browser agents. While their stunning capabilities offer significant benefits in terms of automation, personalization, and accessibility, they also introduce new challenges by drastically altering the web security landscape [52, 74, 109, 150].

Among cybersecurity domains, integrating client-facing interfaces with backend LLM pipelines has emerged as a critical security concern. As LLMs interact directly with end-users, their advanced capabilities transcend traditional security boundaries, allowing long-standing attack vectors such as XSS [58, 121] and CSRF [112] to evolve beyond their conventional forms. Rather than being isolated exploits, these legacy threats are now amplified and transformed through LLM-mediated interactions, significantly expanding the attack surface for adversaries. This emerging shift introduces entirely new attack paradigms. For example, prompt injection attacks can mimic the effects of XSS [95], enabling unauthorized access to sensitive user data, while LLM-driven agents may unknowingly execute adversarial instructions embedded in web content. Beyond these adaptations, novel threats such as membership inference, jailbreaking, and model inversion further expose sensitive data in ways that web security frameworks are ill-equipped to handle. For instance, vulnerabilities in backend embedding pipelines can expose user data to inversion attacks (see Figure 1), bridging server-side weaknesses with severe user-level privacy breaches. Although the user interacts only with a visible web application, the security failure stems from interactions among multiple layers: the client-facing interface, the embedding model, the vector database, the retrieval API, and the downstream application logic. This scenario is grounded in the well-known problem of excessive data exposure (EDE), where web API transmits more information than the client interface legitimately needs [108]. This emphasizes that LLM-related vulnerabilities should not be analyzed solely at the model level, as backend pipeline weaknesses can propagate into concrete harms at the client side and in web applications. Despite growing awareness of these risks, there remains a lack of systematic analysis that connects LLM-specific threats to concrete full-stack web attack models and mitigation strategies. To contextualize these risks, the Open Web Application Security Project (OWASP) published a dedicated Top 10 list for LLMs and generative AI applications of 2025 [55]. As the de facto standard for web application security, this community-driven effort extends OWASP's long-standing tradition of identifying critical risks, focusing specifically on vulnerabilities introduced throughout LLM development, deployment, and integration. OWASP provides a structured lens for analyzing how LLMs reshape both legacy and novel security challenges. Building on this foundation, this work addresses two key research questions:

RQ1. How and to what extent do LLM security risks amplify, transform, or re-enable traditional web vulnerabilities across the web application stack?

RQ2. Are existing defenses and security standards sufficient to mitigate these LLM-mediated risks across client-side, server-side, pipeline, and ecosystem layers?

Existing works primarily analyze LLM vulnerabilities at the model or agent level, often treating LLMs as the final attack surface. However, this perspective overlooks a critical shift: LLMs act as intermediaries that propagate and amplify legacy web vulnerabilities across client-server boundaries. This gap motivates our study. In this paper, we examine how LLM security risk manifests in practice from a web application's perspective, identifying both overlaps with and deviations from traditional full-stack attack models (RQ1). We then investigate how LLM integration re-enables long-standing web vulnerabilities, including XSS, CSRF, clickjacking, man-in-the-middle attacks, client-side request hijacking, and session hijacking, while also introducing novel risks—such as system-prompt leakage, embedding inference, misinformation, and excessive agency—that fall outside conventional web-security frameworks (RQ2). As part of RQ2, we further analyze how established security and risk management frameworks should be extended to systematically address these interconnected LLM-specific threats. By embedding these RQs into our analysis, this survey highlights the urgent need to rethink application-centric defenses in the era of LLM-enabled web systems. Specifically, we make four key contributions:

  • First, we present a structured taxonomy that maps web attacks to their emerging manifestations under the OWASP LLM Top 10 risks, clarifying how LLM-specific designs create new web attack surfaces.

  • Second, we analyze how LLM-driven automation and natural language interfaces amplify and transform legacy vulnerabilities into subtler and more scalable attack vectors.

  • Third, we explore the mitigation strategies spanning client-side, server-side, and LLM pipeline components, exposing critical defense gaps that arise when web security controls are applied to LLM-integrated environments.

  • Finally, we discuss how existing security frameworks must evolve to account for LLM-driven ecosystem threats and outline actionable research directions toward secure and privacy-preserving LLM-enabled web ecosystems.

The remainder of this paper is organized as follows. Section 2 compares our work with recent LLM security surveys and identifies the gap that motivates a full-stack web security perspective. Section 3 presents our methodology. Section 4 describes the systematic literature review process, covering the search strategy, keywords, inclusion/exclusion criteria, and primary-study selection. Section 5 presents the comparative security analysis, showing how OWASP LLM risks map to traditional web vulnerabilities, how these risks are amplified in LLM-integrated web applications, and what defenses and open challenges remain. Section 6 discusses extensions to the security framework for LLM-enabled systems, and Section 7 concludes the paper.

References (66)