Django is vulnerable to Cross-Site Scripting (XSS)
61
Medium Risk
The Django admin renders URLField values as clickable links on changelist and read-only field views through display_for_field. The link is generated without validating the stored value as a safe URL, so a value using a dangerous scheme such as javascript: is emitted. A staff user who clicks the link then executes externally influenced script in the admin, resulting in stored cross-site scripting. The fix validates the value with URLValidator and falls back to plain text when validation fails.
You are affected if you are using a version that falls within the vulnerable range and your application persists URLField values from untrusted input without model validation and displays them in the Django admin.
Django is vulnerable to Cross-Site Scripting (XSS) in versions 5.2.0 - 5.2.16 and 6.0.0 - 6.0.7.
Upgrade the Django library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant