Commit 942e6fd
authored
fix(security): Address Dependabot and code scanning vulnerabilities (#17)
* fix(security): address Dependabot and code scanning vulnerabilities
- Update Django from 5.0.7 to 5.1.4 to fix critical SQL injection vulnerabilities
- Update asteval from 0.9.31 to 1.0.5 to fix sandbox escape vulnerabilities
- Fix 4 stack trace exposure issues in views.py by using generic error messages
- Add proper logging for error tracking without exposing sensitive information
Fixes 18 open Dependabot alerts and 4 code scanning alerts
* fix: use first Docker tag from metadata for Trivy scanner
* fix: resolve pytest version conflict between requirements files
* style: apply black formatting to views.py1 parent a14b7b6 commit 942e6fd
3 files changed
Lines changed: 66 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
27 | 47 | | |
28 | 48 | | |
29 | 49 | | |
| |||
177 | 197 | | |
178 | 198 | | |
179 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
180 | 204 | | |
181 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
182 | 209 | | |
183 | 210 | | |
184 | 211 | | |
| |||
292 | 319 | | |
293 | 320 | | |
294 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
295 | 325 | | |
296 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
297 | 330 | | |
298 | 331 | | |
299 | 332 | | |
| |||
369 | 402 | | |
370 | 403 | | |
371 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
372 | 408 | | |
373 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
374 | 413 | | |
375 | 414 | | |
376 | 415 | | |
| |||
408 | 447 | | |
409 | 448 | | |
410 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
411 | 454 | | |
412 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
413 | 459 | | |
414 | 460 | | |
415 | 461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments