@ARTICLE{11197590, author={Zhao, Jianguo and Sun, Yuqiang and Huang, Cheng and Liu, Chengwei and Guan, YaoHui and Zeng, Yutong and Liu, Yang}, journal={IEEE Transactions on Software Engineering}, title={Towards Secure Code Generation With LLMs: A Study on Common Weakness Enumeration}, year={2025}, volume={51}, number={12}, pages={3507-3523}, keywords={Codes;Security;Maintenance engineering;Software development management;Logic;Business;Semantics;Large language models;Generators;Web servers;Code generation;large language model;Common Weakness Enumerations (CWEs)}, doi={10.1109/TSE.2025.3619281}}