cs.CRAug 21, 2026

Vibe Coding and Web Application Security: A Twin-Prompt Study

Authors: Darko Andročec

Organizations: University of Zagreb Faculty of Organization and Informatics Department of Information Systems Development Pavlinska 2, 42000 Varaždin, Croatia

Abstract

Large language models increasingly generate complete web applications from natural-language prompts, raising the question of whether explicitly requesting security best practice improves the result. We study six functionally distinct web applications, each generated in two prompt variants that are identical except for an appended security-requirements section: a baseline (A) and a security-aware (B) variant. All twelve programs were produced by the same agentic coding assistant and the same model version in a single, non-iterative generation round, and were then analyzed with static, dependency, dynamic and manual techniques, yielding 75 confirmed findings out of 85 candidates. The security-aware variant produced fewer confirmed findings in every application (24 versus 51) and contained no Critical or High issues; the most severe finding was detected only by manual testing. Because the corpus is small and each variant was generated once, we report descriptive observations rather than statistically established effects, and position the work as a preliminary study whose pipeline is being scaled to multiple models and repeated runs.

Explore similar work

CardsList
  1. Last Secure Code Benchmark: Is the Code You Vibe Secure?

    Oct 10, 2026Tianyi Wu, Chao Ge, Peng Chen +12Secure Code GenerationAI Agent Security Benchmarks

  2. Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks

    Dec 2, 2025Songwen Zhao, Danqing Wang, Kexun Zhang +3AI Coding AgentsSoftware Security