Advisory

GHSA-wjw6-95h5-4jpx

Also known as: CVE-2025-49142, PYSEC-2025-79

Summary

Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating

Details

Impact
_What kind of vulnerability is it? Who is impacted?_

All users of Nautobot versions prior to 2.4.10 or prior to 1.6.32 are potentially affected.

Due to insufficient security configuration of the Jinja2 templating feature used in computed fields, custom links, etc. in Nautobot:

  1. A malicious user could configure this feature set in ways that could expose the value of Secrets defined in Nautobot when the templated content is rendered.
  2. A malicious user could configure this feature set in ways that could call Python APIs to modify data within Nautobot when the templated content is rendered, bypassing the object permissions assigned to the viewing user.

Patches
_Has the problem been patched? What versions should users upgrade to?_

Nautobot versions 1.6.32 and 2.4.10 will include fixes for the vulnerability.

Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_

The vulnerability can be partially mitigated by configuring object permissions appropriately to limit the below actions to only trusted users:

  • extras.add_secret
  • extras.change_secret
  • extras.view_secret
  • extras.add_computedfield
  • extras.change_computedfield
  • extras.add_customlink
  • extras.change_customlink
  • extras.add_jobbutton
  • extras.change_jobbutton

References
_Are there any links users can visit to find out more?_

  • https://jinja.palletsprojects.com/en/stable/sandbox/
  • https://docs.djangoproject.com/en/4.2/ref/templates/api/#alters-data-description
  • https://github.com/nautobot/nautobot/pull/7417
  • https://github.com/nautobot/nautobot/pull/7429

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-06-10 20:17 UTC
Modified
2026-06-09 17:11 UTC

Affected packages and fixes

nautobot

PyPI · All systems

Affected

  • introduced 0, fixed 1.6.32 (ecosystem)

Fixed versions

1.6.32

Fix

  • Fixed version 1.6.32
    pip install --upgrade nautobot==1.6.32

nautobot

PyPI · All systems

Affected

  • introduced 2.0.0, fixed 2.4.10 (ecosystem)

Fixed versions

2.4.10

Fix

  • Fixed version 2.4.10
    pip install --upgrade nautobot==2.4.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences