nautobot is vulnerable to Cross-Site Scripting (XSS)
54
Medium Risk
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.
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.
nautobot is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 2.4.36 and 3.0.0 - 3.1.7.
Upgrade the nautobot 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