Vulnerability DatabaseGHSA-gfqr-fp2c-h495

GHSA-gfqr-fp2c-h495: 
Python vulnerability analysis and mitigation

Summary

Briefly describe the vulnerability. A user with permission to add or change Custom Link records could set a link's target URL to one that executes script, which would run in the browser of any user who clicked that link on an object's detail page, enabling a stored cross-site scripting (XSS) attack.

Impact

What kind of vulnerability is it? Who is impacted? Nautobot renders each Custom Link's Target URL as a Jinja2 template and places the result in the href attribute of a button or dropdown entry on the detail page of every object of the link's content type. The rendered URL was HTML-escaped, but its URL scheme was never validated, so a URL using a script-executing scheme was emitted unchanged. When another user clicked the link, the script ran in that user's browser in Nautobot's origin, with that user's authenticated session. Any authenticated user granted extras.add_customlink or extras.change_customlink could exploit this; no other permissions are required. Because the script acts with the victim's session, a link clicked by an administrator can perform any action available to that administrator, including creating new superuser accounts or granting superuser status to an existing account through the REST API. The victim must click the link; viewing the page alone does not trigger it. This is a different flaw from GHSA-cf9f-wmhp-v4pr, which corrected HTML escaping of custom link output but did not restrict the URL scheme.

Fixed Versions

Has the problem been patched? What versions should users upgrade to? Fixes are available in Nautobot 2.4.47+ and 3.2.10+.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

  • Grant extras.add_customlink and extras.change_customlink only to fully trusted users.
  • Review existing Custom Links (Extensibility > Custom Links) and delete or correct any whose Target URL is not a relative path or does not use an expected scheme such as http or https. Because the Target URL is a Jinja2 template, also check templates that could produce such a URL when rendered.

References

Are there any links users can visit to find out more?


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hhqh-8jpj-27rfCRITICAL9.8
  • Python logoPython
  • lmcache
NoYesNov 23, 2026
CVE-2026-130164HIGH7.8
  • Python logoPython
  • hermes-agent
NoYesNov 23, 2026
GHSA-v8x2-8vhg-5vc3MEDIUM5.8
  • Python logoPython
  • nautobot
NoYesNov 23, 2026
GHSA-gfqr-fp2c-h495MEDIUM5.4
  • Python logoPython
  • nautobot
NoYesNov 23, 2026
GHSA-jg4p-wprm-8hphMEDIUM5.3
  • Python logoPython
  • lmcache
NoYesNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management