Vulnerability · Published Jun 10, 2025 · Assigned by GitHub_M
CVE-2025-49142Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating
Medium 6.0
In plain English
A medium-severity security flaw in nautobot from nautobot. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Nautobot is a Network Source of Truth and Network Automation Platform. 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, 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 or 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. Nautobot versions 1.6.32 and 2.4.10 will include fixes for the vulnerability. The vulnerability can be partially mitigated by configuring object permissions appropriately to limit certain actions to only trusted users.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | jinja2 | no fix listed | PYSEC-2025-74 |
| PyPI | nautobot | 1.6.32 | GHSA-wjw6-95h5-4jpx |
| PyPI | nautobot | 2.4.10 | GHSA-wjw6-95h5-4jpx |
| PyPI | nautobot | 1.6.32, 2.4.10 | PYSEC-2025-79 |
Affected products (as reported)
Weakness: CWE-1336 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:L
References
- https://github.com/nautobot/nautobot/security/advisories/GHSA-wjw6-95h5-4jpx x_refsource_CONFIRM
- https://github.com/nautobot/nautobot/pull/7417 x_refsource_MISC
- https://github.com/nautobot/nautobot/pull/7429 x_refsource_MISC
- https://docs.djangoproject.com/en/4.2/ref/templates/api/#alters-data-description x_refsource_MISC
- https://jinja.palletsprojects.com/en/stable/sandbox x_refsource_MISC