@@ -20,6 +20,7 @@ type CVEEntry struct {
2020 Severity string // critical, high, medium, low
2121 Description string
2222 Recommendations []string
23+ References []string
2324}
2425
2526// knownCVEs contains known vulnerabilities for popular frameworks.
@@ -33,6 +34,7 @@ var knownCVEs = map[string][]CVEEntry{
3334 Severity : "critical" ,
3435 Description : "Ignition debug mode RCE vulnerability" ,
3536 Recommendations : []string {"Update to Laravel 8.4.2 or later" , "Disable debug mode in production" },
37+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2021-3129" },
3638 },
3739 {
3840 CVE : "CVE-2021-21263" ,
@@ -41,6 +43,7 @@ var knownCVEs = map[string][]CVEEntry{
4143 Severity : "high" ,
4244 Description : "SQL injection via request validation" ,
4345 Recommendations : []string {"Update to Laravel 8.5.0 or later" , "Use parameterized queries" },
46+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2021-21263" },
4447 },
4548 },
4649 "Django" : {
@@ -51,6 +54,7 @@ var knownCVEs = map[string][]CVEEntry{
5154 Severity : "high" ,
5255 Description : "Potential ReDoS in EmailValidator and URLValidator" ,
5356 Recommendations : []string {"Update to Django 4.2.3 or later" },
57+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-36053" },
5458 },
5559 {
5660 CVE : "CVE-2023-31047" ,
@@ -59,6 +63,7 @@ var knownCVEs = map[string][]CVEEntry{
5963 Severity : "medium" ,
6064 Description : "File upload validation bypass" ,
6165 Recommendations : []string {"Update to Django 4.1.9 or later" , "Implement additional file validation" },
66+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-31047" },
6267 },
6368 },
6469 "WordPress" : {
@@ -69,6 +74,7 @@ var knownCVEs = map[string][]CVEEntry{
6974 Severity : "medium" ,
7075 Description : "Directory traversal vulnerability" ,
7176 Recommendations : []string {"Update to WordPress 6.2 or later" },
77+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-2745" },
7278 },
7379 },
7480 "Drupal" : {
@@ -79,6 +85,7 @@ var knownCVEs = map[string][]CVEEntry{
7985 Severity : "high" ,
8086 Description : "HTTP/2 rapid reset attack (DoS)" ,
8187 Recommendations : []string {"Update to Drupal 10.1.4 or later" , "Configure HTTP/2 rate limiting" },
88+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-44487" },
8289 },
8390 },
8491 "Next.js" : {
@@ -89,6 +96,7 @@ var knownCVEs = map[string][]CVEEntry{
8996 Severity : "medium" ,
9097 Description : "Server-side request forgery vulnerability" ,
9198 Recommendations : []string {"Update to Next.js 13.5.0 or later" },
99+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-46298" },
92100 },
93101 },
94102 "Angular" : {
@@ -99,6 +107,7 @@ var knownCVEs = map[string][]CVEEntry{
99107 Severity : "medium" ,
100108 Description : "Regular expression denial of service" ,
101109 Recommendations : []string {"Update to Angular 15.2.0 or later" },
110+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-26117" },
102111 },
103112 },
104113 "Vue.js" : {
@@ -109,6 +118,7 @@ var knownCVEs = map[string][]CVEEntry{
109118 Severity : "medium" ,
110119 Description : "XSS vulnerability in certain configurations" ,
111120 Recommendations : []string {"Update to Vue.js 2.7.16 or 3.x" },
121+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2024-5987" },
112122 },
113123 },
114124 "Express.js" : {
@@ -119,6 +129,7 @@ var knownCVEs = map[string][]CVEEntry{
119129 Severity : "medium" ,
120130 Description : "Open redirect vulnerability" ,
121131 Recommendations : []string {"Update to Express.js 4.19.2 or later" },
132+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2024-29041" },
122133 },
123134 },
124135 "Ruby on Rails" : {
@@ -129,6 +140,7 @@ var knownCVEs = map[string][]CVEEntry{
129140 Severity : "high" ,
130141 Description : "ReDoS vulnerability in Action Dispatch" ,
131142 Recommendations : []string {"Update to Rails 7.0.4.1 or later" },
143+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-22795" },
132144 },
133145 },
134146 "Spring" : {
@@ -139,6 +151,7 @@ var knownCVEs = map[string][]CVEEntry{
139151 Severity : "critical" ,
140152 Description : "Spring4Shell RCE vulnerability" ,
141153 Recommendations : []string {"Update to Spring 5.3.18 or later" , "Disable class binding on user input" },
154+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2022-22965" },
142155 },
143156 },
144157 "Spring Boot" : {
@@ -149,6 +162,7 @@ var knownCVEs = map[string][]CVEEntry{
149162 Severity : "critical" ,
150163 Description : "RCE via Spring Cloud Function" ,
151164 Recommendations : []string {"Update to Spring Boot 2.6.6 or later" },
165+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2022-22963" },
152166 },
153167 },
154168 "ASP.NET" : {
@@ -159,6 +173,7 @@ var knownCVEs = map[string][]CVEEntry{
159173 Severity : "high" ,
160174 Description : "Elevation of privilege vulnerability" ,
161175 Recommendations : []string {"Apply latest security patches" , "Ensure proper request validation" },
176+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-36899" },
162177 },
163178 },
164179 "Joomla" : {
@@ -169,6 +184,7 @@ var knownCVEs = map[string][]CVEEntry{
169184 Severity : "critical" ,
170185 Description : "Improper access check allowing unauthorized access to webservice endpoints" ,
171186 Recommendations : []string {"Update to Joomla 4.2.8 or later" },
187+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2023-23752" },
172188 },
173189 },
174190 "Magento" : {
@@ -179,6 +195,7 @@ var knownCVEs = map[string][]CVEEntry{
179195 Severity : "critical" ,
180196 Description : "Improper input validation leading to arbitrary code execution" ,
181197 Recommendations : []string {"Update to Magento 2.4.3-p1 or later" },
198+ References : []string {"https://nvd.nist.gov/vuln/detail/CVE-2022-24086" },
182199 },
183200 },
184201}
0 commit comments