Intel

AIKIDO-2026-937906

nautobot is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-56v6-2fhr-wxgq Published 3 days ago

54

Medium Risk

This Affects:

PYTHONnautobot
0.0.1 - 2.4.36
Fixed in 2.4.37
3.0.0 - 3.1.7
Fixed in 3.1.8
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

nautobot is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 2.4.36 and 3.0.0 - 3.1.7.

How to fix this

Upgrade the nautobot library to the patch version.