A Hybrid CNN-LSTM Approach for Detecting Cross-Site Scripting Attacks in Web Applications
bit-Tech · 10.04.2026 · 8 (3) · 3508-3518
DOI: 10.32877/bt.v8i3.3559 ↗Kurz gefasst
Fachartikel in der Zeitschrift bit-Tech, online erschienen am 10.04.2026. Verfasst von Eka Seftrian Anugera und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY-SA 4.0).
Abstract (Originalsprache)
Cross-Site Scripting (XSS) remains one of the most pervasive and persistent vulnerabilities in modern web applications, allowing attackers to inject and execute malicious scripts through user input fields. Conventional detection mechanisms based on static rules, blacklists, or handcrafted features often fail to recognize obfuscated or context-aware payloads, leading to severe gaps in real-time protection. This study proposes a hybrid deep learning architecture combining Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) to overcome these limitations by simultaneously capturing spatial patterns and sequential dependencies in character-level input. The model was trained and validated using both public XSS datasets and sanitized internal web logs to ensure robustness across diverse payload structures. Experimental results demonstrate high classification performance, achieving 98.67% accuracy, 98.21% precision, 99.29% recall, and an ROC-AUC of 0.9990. The hybrid CNN-LSTM architecture’s novel integration of local feature extraction and temporal context modeling enables superior generalization compared to conventional CNN or LSTM-only approaches. Beyond quantitative metrics, the model was deployed in a Flask-based web simulation to assess its real-world applicability, where it successfully detected and mitigated live XSS payloads in real time without disrupting benign user operations. These findings highlight the potential of hybrid deep learning models as adaptive, low-latency defenses for strengthening modern web application security infrastructures.
Zitieren
APA
Anugera, E. S., & Mirza, A. (2026). A Hybrid CNN-LSTM Approach for Detecting Cross-Site Scripting Attacks in Web Applications. bit-Tech, 8(3), 3508-3518. https://doi.org/10.32877/bt.v8i3.3559
Vancouver
Anugera ES, Mirza A. A Hybrid CNN-LSTM Approach for Detecting Cross-Site Scripting Attacks in Web Applications. bit-Tech. 2026;8(3):3508-3518. doi:10.32877/bt.v8i3.3559
BibTeX
@article{Anugera2026,
author = {Anugera, Eka Seftrian and Mirza, Anis},
title = {A Hybrid CNN-LSTM Approach for Detecting Cross-Site Scripting Attacks in Web Applications},
journal = {bit-Tech},
year = {2026},
volume = {8},
number = {3},
pages = {3508--3518},
doi = {10.32877/bt.v8i3.3559}
}
EUVIMED