Use of Peer Code Review to Identify Potential Security Vulnerabilities in Open Source Software: A Systematic Literature Review
Md Niaz Morshed, Jeffrey C. Carver
Abstract
Context: Security vulnerabilities in OSS can have severe consequences. OSS project participants widely use peer code review to improve quality and prevent security flaws. However, despite mandatory reviews, OSS projects still contain vulnerabilities, highlighting the need to evaluate code review effectiveness for security. Objectives: This SLR synthesizes evidence on vulnerability types identified or missed, security practices, tool support, reviewer challenges, and factors that improve detection. Method: Searches of five digital libraries yielded 1,067 studies, of which 20 were included. Vulnerabilities were categorized using the Common Weakness Enumeration (CWE) framework. Results: Peer code reviews effectively detect localized, well-known vulnerabilities (e.g., buffer overruns, race conditions, crashes, XSS) but often miss subtle, complex, context-dependent issues (e.g., input validation weaknesses, access control weaknesses, resource lifecycle weaknesses). Effective security practices are associated with reviewer expertise, code familiarity, frequent small changes, and organizational support. Security analysis tools, especially Static Application Security Testing (SAST) tools, reduce reviewer effort and improve detection but cannot replace human judgment. Reviewers continue to face limitations in security knowledge, experience, time, and understanding of complex systems. Effectiveness improves through security training, domain expertise, contextual familiarity, formalized review processes, and supportive review environments. Conclusion: Peer code review contributes to OSS security but is insufficient on its own. Improving effectiveness requires structured review processes and checklists, security training, organizational incentives, and lightweight automated tool support to help reviewers detect subtle vulnerabilities while reinforcing secure development practices.
Create a lesson
Related papers
Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Development
Shared title terminology · Jesse Phillips, Tracy Hall, Paul Rayson et al.
Vibe Coding in Software Development: A Multivocal Literature Review
Shared title terminology · Shahbaz Siddeeq, Muhammad Waseem, Kai-Kristian Kemell et al.
YUL: Bringing Software Supply Chain Security to Coding Agents
Shared title terminology · Aman Sharma, Frank Reyes, Martin Monperrus
Post-Quantum Cryptography Education for Software Developers: A Multivocal Literature Review
Shared title terminology · R. D. N. Shakya, C. P. Wijesiriwardana, S. M. Vidanagamachchi et al.
GUEST: Preliminary Guidelines for Using and Evaluating GenAI Tools to Support Systematic Literature Reviews
Shared title terminology · Barbara Kitchenham, Sebastián Pizard, Lech Madeyski et al.
Towards Energy-Efficient Large Language Model Inference: A Systematic Literature Review
Shared title terminology · Sabiya Banu Masthan Ali, Syed Muhammad Danish, Rupinder Kaur et al.