nautobot is vulnerable to Cross-Site Scripting (XSS)
54
CVE Score
Medium
Cross-Site Scripting (XSS)
Nautobot assigns user-controlled model fields directly to a form field's help_text, which is rendered with Django's |safe filter in render_field.html and bypasses auto-escaping. A user with permission to create or edit Relationships or Module Families can store an HTML or JavaScript payload in a Relationship description or a Module Family name. The payload then executes in the browser of any user, including administrators, who opens an affected create or edit form, enabling session or token theft and actions performed as the victim. The fix renders these fields through Nautobot's Markdown/HTML-safe helpers so the stored content is escaped instead of trusted.
Upgrade the nautobot library to the patch version.
You are affected if you run a version in the vulnerable range and any not-fully-trusted user holds the extras.add_relationship/extras.change_relationship or dcim.add_modulefamily/dcim.change_modulefamily permission. Such a user can store an HTML/JavaScript payload in a Relationship description or Module Family name, which then executes in the browser of any user (including administrators) who opens an affected create or edit form.
0.0.1 - 2.4.36
Fixed in 2.4.373.0.0 - 3.1.7
Fixed in 3.1.8nautobot is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 2.4.36 and 3.0.0 - 3.1.7.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.