Comparative Analysis of Cross-Site Scripting (XSS) Vulnerabilities in Monolith and Microservices Architectures
DOI:
https://doi.org/10.54074/jicsa.v1i02.14Keywords:
Cross-Site Scripting (XSS), Monolith Architecture, MicroservicesAbstract
This study presents a comparative analysis of Cross-Site Scripting (XSS) vulnerabilities between monolithic and microservices web application architectures. Both applications were developed using Python Flask inside an isolated Docker environment and implemented with identical functionality. Security testing was conducted using automated scanning with OWASP ZAP on both architectures. The results show that Reflected XSS and Server-Side Template Injection (SSTI) vulnerabilities were detected in both architectures, with identical payloads successfully executed. These findings indicate that architectural separation alone does not automatically eliminate source-code-level vulnerabilities such as XSS. Security implementations must be consistently applied across all service layers to prevent data contamination and maintain trust boundaries between services.
References
Barczak, A., & Barczak, M. (2021). Performance comparison of monolith and microservices based applications.
Berardi, D., Giallorenzo, S., Melis, A., Prandini, M., Mauro, J., & Montesi, F. (2022). Microservice security: a systematic literature review. PeerJ Computer Science, 7. https://doi.org/10.7717/PEERJ-CS.779
Berry, V., Castelltort, A., Lange, B., Teriihoania, J., Tibermacine, C., & Trubiani, C. (2024). Is it Worth Migrating a Monolith to Microservices? An Experience Report on Performance, Availability and Energy Usage. https://github.com/orgs/ShellOnYou/
Jayalath, R. K., Ahmad, H., Goel, D., Syed, M. S., & Ullah, F. (2024). Microservice Vulnerability Analysis: A Literature Review with Empirical Insights. http://arxiv.org/abs/2408.03960
Jayantha, R. (2025). Microservices vs. Monolith in Cloud Architecture-A Comprehensive Analysis for Modern System Design. www.tijer.org
Kim, J., & Park, J. (2023). Enhancing Security of Web-Based IoT Services via XSS Vulnerability Detection †. Sensors, 23(23). https://doi.org/10.3390/s23239407
Lindblom, W. (2022). Evaluation of security threats in microservice architectures.
Nagarjun, P., & Ahamad, S. S. (2020). Cross-site Scripting Research: A Review. In IJACSA) International Journal of Advanced Computer Science and Applications (Vol. 11, Issue 4). www.ijacsa.thesai.org
Rahaman, M. S., Islam, A., Cerny, T., & Hutton, S. (2023). Static-Analysis-Based Solutions to Security Challenges in Cloud-Native Systems: Systematic Mapping Study. In Sensors (Vol. 23, Issue 4). MDPI. https://doi.org/10.3390/s23041755
Weamie, S. J. Y. (2022). Cross-Site Scripting Attacks and Defensive Techniques: A Comprehensive Survey. International Journal of Communications, Network and System Sciences, 15(08), 126–
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Evi Damanik

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

