The CWE Top 25 from MITRE rank the most dangerous classes of software weaknesses; the 2025 edition is based on 39,080 CVE records from June 2024 to June 2025, weighted by frequency and average CVSS severity. At the top are Cross-Site Scripting (CWE-79), SQL injection (CWE-89) and Cross-Site Request Forgery (CWE-352) – patterns known for decades that nevertheless remain the most common root causes of real-world CVEs. Two blocks stand out alongside them: memory-safety flaws such as Out-of-bounds Write/Read and Use After Free (above all in C/C++ codebases), and no fewer than four authorization weaknesses (CWE-862, CWE-863, CWE-284, CWE-639). For secure coding this means: most vulnerabilities follow known, avoidable patterns – and can be addressed in a targeted way.
Secure Coding – preventing vulnerabilities before they arise
How to prevent vulnerabilities systematically: the current landscape of the CWE Top 25 and OWASP Top 10:2025, ASVS 5.0 as a requirements framework, and the practices that make the difference in day-to-day development.
A large share of the vulnerabilities later uncovered in penetration tests or published as CVEs is introduced while the code is being written – and has followed the same patterns for years. Catalogues such as the CWE Top 25 and the OWASP Top 10 make this landscape visible; the OWASP ASVS 5.0 translates it into verifiable requirements. Beyond that, secure coding encompasses concrete practices – from input validation and authorization patterns to secrets handling – as well as their anchoring in the development process through code reviews, SAST/DAST and targeted developer enablement. With regulations such as the EU Cyber Resilience Act, secure development is also shifting from good practice to a product obligation.
The Essentials at a Glance
Six topic blocks — tap to expand.
Three reference works, one landscape
The CWE Top 25, OWASP Top 10:2025 and ASVS 5.0 side by side — tap a tab for details.
- MITRE ranks the most dangerous classes of software weaknesses — the 2025 edition is based on 39,080 CVE records (June 2024 to June 2025), weighted by frequency and average CVSS severity.
- Cross-Site Scripting, SQL injection and Cross-Site Request Forgery top the list — patterns known for decades that nevertheless remain the most common root causes of real-world CVEs.
- Also striking: memory-safety flaws (above all in C/C++ codebases) and no fewer than four authorization weaknesses — most vulnerabilities follow known, avoidable patterns.
- Bundles individual weaknesses into risk categories — the 2025 edition draws on test data from around 2.8 million applications.
- Broken Access Control remains in first place and now also covers Server-Side Request Forgery; new entries are A03 "Software Supply Chain Failures" and A10 "Mishandling of Exceptional Conditions".
- Works well for awareness and prioritization — but no substitute for a complete requirements catalogue for development.
- Translates secure coding into verifiable requirements: version 5.0.0 comprises around 350 requirements across 17 chapters — from encoding and sanitization to Secure Coding and Architecture.
- The three levels have been recut compared to 4.x and ordered by priority: L1 covers around 20 percent as the critical first line of defence, L2 — the target level for most applications — adds a further roughly 50 percent, L3 the remaining defence-in-depth measures.
- In practice, the ASVS serves as a requirements framework for development and procurement as well as a benchmark for code reviews and penetration tests.
Standards & Sources
The content on this page is based on the following publicly available guides and studies.
2025 CWE Top 25 Most Dangerous Software Weaknesses
Ranking of the 25 most dangerous weakness classes based on 39,080 CVE records (06/2024–06/2025), weighted by frequency and CVSS severity.
OWASP Top 10:2025
Eighth edition of the risk categories for web applications; new entries are Software Supply Chain Failures and Mishandling of Exceptional Conditions, while SSRF was merged into Broken Access Control.
OWASP Application Security Verification Standard (ASVS) 5.0.0
Requirements and verification standard with around 350 requirements across 17 chapters; levels L1–L3 prioritized by risk reduction and implementation effort.
OWASP Top 10 Proactive Controls 2024
Ten preventive controls (C1–C10) for development teams, including access control, cryptography and input validation with exception handling.
NIST SP 800-218: Secure Software Development Framework (SSDF) Version 1.1
Vendor-neutral practices for a secure development process in four groups: Prepare the Organization, Protect the Software, Produce Well-Secured Software, Respond to Vulnerabilities.
Building or sharpening a secure coding program?
In a no-obligation initial consultation, we benchmark your current state against ASVS 5.0 and the CWE Top 25 and outline sensible next steps.