Hidden security risks of AI-generated code in frontend applications: a risk-oriented analysis

The increasing use of generative artificial intelligence (AI) in frontend development necessitates security verification of the generated code. This study aims to develop an approach that links frontend code areas, security properties, their status under standard checks, and methods of additional verification. The study is based on an analysis of scientific publications and OWASP documentation, as well as a secondary analysis of publicly available empirical data. Five non-mutually exclusive areas were identified: rendering and the DOM; URLs and navigation; forms and user input; client-side state and browser storage; and API interactions. Security properties and corresponding verification methods were defined for each area. Three verification statuses are proposed: “checked,” “not checked,” and “unknown.” In SecurityEval, manual inspection detected the targeted security weaknesses in 73.85% of cases, compared with 18.46% for CodeQL and 10.77% for Bandit. In the study by Spracklen et al., the average rate of nonexistent package generation for JavaScript was 21.3%, whereas a later replication by Churilov using a different cohort of models reported rates of 2.62–3.78% (preprint). The priority of additional verification is proposed to be determined by the potential consequences of violating a security property, without introducing a numerical risk index. The approach enables verification methods to be selected according to the specific security property being assessed.

Authors

Publication Details

Journal
American Impact Review
Published
2026-12-03
DOI
https://doi.org/10.66308/air.e23845482
Primary Topic
Web Application Security Vulnerabilities
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Hidden security risks of AI-generated code in frontend applications: a risk-oriented analysis

Margarita Yakovleva
American Impact Review
Web Application Security Vulnerabilities
article

Hidden security risks of AI-generated code in frontend applications: a risk-oriented analysis

Margarita Yakovleva
article en

Abstract

The increasing use of generative artificial intelligence (AI) in frontend development necessitates security verification of the generated code. This study aims to develop an approach that links frontend code areas, security properties, their status under standard checks, and methods of additional verification. The study is based on an analysis of scientific publications and OWASP documentation, as well as a secondary analysis of publicly available empirical data. Five non-mutually exclusive areas were identified: rendering and the DOM; URLs and navigation; forms and user input; client-side state and browser storage; and API interactions. Security properties and corresponding verification methods were defined for each area. Three verification statuses are proposed: “checked,” “not checked,” and “unknown.” In SecurityEval, manual inspection detected the targeted security weaknesses in 73.85% of cases, compared with 18.46% for CodeQL and 10.77% for Bandit. In the study by Spracklen et al., the average rate of nonexistent package generation for JavaScript was 21.3%, whereas a later replication by Churilov using a different cohort of models reported rates of 2.62–3.78% (preprint). The priority of additional verification is proposed to be determined by the potential consequences of violating a security property, without introducing a numerical risk index. The approach enables verification methods to be selected according to the specific security property being assessed.

American Impact ReviewVol. 1(12)
Web Application Security Vulnerabilities
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon