NetBox renders custom links with Jinja2 and previously exposed the raw Django HttpRequest object in the template context. That object could provide sensitive request data, including session cookies and information used to obtain or expose API tokens. A user with the "Can add custom links" permission can create a custom link template that references request.COOKIES['sessionid'] or a user's API token and places the value in an img src URL. When a privileged user views an object containing the link, the browser can issue a request to an attacker-controlled host and disclose the value embedded in the URL. The described path bypasses the clean_html sanitizer. The fix changes the custom link and webhook contexts to use a safe request context that exposes only a restricted set of attributes, including id, path, path_info, method, GET, and user; cookies, headers, and session state are no longer available.