Vue template secure compilation methods, devices, equipment, and storage media
By parsing Vue component templates into an abstract syntax tree, identifying and tracing injection receivers, the inconsistency in handling cross-site scripting attack risks in the Vue framework is resolved, automated security handling is achieved, and the security of Vue templates is improved.
Patent Information
- Application Number
- CN202611580586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-13
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, the template compilation process of the Vue framework relies on the security awareness and experience of developers, which leads to inconsistent standards for handling cross-site scripting attack risks among different developers, making it easy to overlook risk locations.
By parsing the Vue component template into an abstract syntax tree, traversing the nodes to identify the injection receiver type, tracing the original data source and determining the data type, performing security processing, generating a new abstract syntax tree, and compiling it into rendering function code.
The automated identification and processing of injection receivers eliminates the problems of missed risk identification and inconsistent processing standards caused by differences in developer experience and awareness, thereby improving security and consistency.
Smart Images

Figure CN123114437A_ABST
