Add CVSS4 support #12751
Merged
Add CVSS4 support #12751
DryRunSecurity / Cross-Site Scripting Analyzer
succeeded
Jul 15, 2025 in 1s
DryRun Security
Details
Cross-Site Scripting Analyzer Findings: 2 detected
⚠️ Potential Cross-Site Scripting dojo/forms.py (click for details)
| Type | Potential Cross-Site Scripting |
| Description | The code is potentially vulnerable to XSS in the BulletListDisplayWidget's render method. Although mark_safe() is used, which typically helps prevent XSS, the method directly constructs HTML using an f-string with user-controlled input (self.urls_dict). If the urls_dict contains untrusted data, an attacker could potentially inject malicious scripts via the URL or text values. While mark_safe() prevents automatic escaping, it does not sanitize the input itself. Care must be taken to ensure that self.urls_dict only contains trusted data before rendering. |
| Filename | dojo/forms.py |
| CodeLink | django-DefectDojo/dojo/forms.py Lines 140 to 161 in 31aca16 |
⚠️ Potential Cross-Site Scripting dojo/templates/dojo/view_finding.html (click for details)
| Type | Potential Cross-Site Scripting |
| Description | The code is potentially vulnerable to XSS because it directly renders variables (firstID, currentID, lastID) into JavaScript without proper sanitization. These variables are being inserted directly into the script context using Django's template syntax, which could allow an attacker to inject arbitrary JavaScript if the values are not strictly controlled. The lack of explicit escaping or sanitization means that if these variables contain user-controlled input, a malicious script could be executed in the browser. |
| Filename | dojo/templates/dojo/view_finding.html |
| CodeLink | django-DefectDojo/dojo/templates/dojo/view_finding.html Lines 1169 to 1177 in 31aca16 |
Loading