A server-side template injection vulnerability exists in NetBox versions 2.9.5 before 4.7.0, allowing a low-privileged user with the 'Can add custom links' permission to steal session cookies and API tokens of other users. This is achieved by exposing the raw Django HttpRequest object to the Jinja2 template context, enabling an attacker to craft a custom link template that auto-exfiltrates the victim's credentials to an attacker-controlled host when a privileged user views the object.
CVE-2026-54752 is a critical vulnerability in the NetBox Device Type Library that allows for arbitrary code execution due to insecure deserialization of pickle cache files. An unauthenticated contributor can exploit this by supplying a crafted pickle file that, when loaded during testing, invokes attacker-controlled object reduction behavior. This vulnerability has been fixed with commit 1c6f7e2b93589b965318c6e67ac3504831f0e71e.
A remote code execution vulnerability exists in NetBox versions 4.3.5 through 4.5.4. The RenderTemplateMixin.get_environment_params() method allows authenticated users with exporttemplate or configtemplate permissions to execute arbitrary code by specifying malicious Python callables in the environment_params field. Attackers can bypass Jinja2 SandboxedEnvironment protections by setting the finalize parameter to an importable Python callable such as subprocess.getoutput, which is invoked on every rendered expression outside the sandbox's call interception mechanism. This achieves remote code execution as the NetBox service user. The vulnerability was disclosed on 2026-05-04 and last modified on 2026-05-21. A fix is available in version 4.6.1.