Improper Neutralization of Special Elements Used in a Template Engine in Nautobot - #VU139395

 

Improper Neutralization of Special Elements Used in a Template Engine in Nautobot - #VU139395

Published: July 27, 2026


Vulnerability identifier: #VU139395
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-1336
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary SQL queries and execute arbitrary code.

The vulnerability exists due to improper neutralization of special elements used in a template engine in the Jinja2 sandboxed template renderer when rendering a user-authored Jinja2 template with a live database object in context. A remote user can author a crafted template to execute arbitrary SQL queries and execute arbitrary code.

Code execution on the database host is possible when the database role is a PostgreSQL superuser.


Affected software

Nautobot

Remediation

Install security update from vendor's website.

Nautobot - addressed in versions 2.4.38, 3.2.0

External References

Related Security Bulletins