CVE-2025-49142: Nautobot Nautobot Vulnerable To Secrets Exposure Vulnerability

MODERATE
Advisory Identifier: GHSA-wjw6-95h5-4jpx
CWE-1336
Published
Advisory Summary

CVE-2025-49142 is a MODERATE nautobot vulnerable to secrets exposure vulnerability (CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine) affecting Nautobot libraries in the PyPI ecosystem. The issue involves nautobot vulnerable to secrets exposure and data manipulation through jinja2 templating. Remediation is available by upgrading affected packages to version 1.6.32, 2.4.10.

CVE-2025-49142 at a Glance

CVE Identifier CVE-2025-49142
GHSA Identifier GHSA-wjw6-95h5-4jpx
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
Affected Product Nautobot
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-49142

To remediate this vulnerability, upgrade all affected Nautobot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nautobot fixed: 1.6.32
pip install nautobot>=1.6.32
nautobot fixed: 2.4.10
pip install nautobot>=2.4.10
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show nautobot

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-49142, inspect your installed packages using pip:

pip show nautobot

Analyze the terminal output to locate any version of Nautobot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.32), your application is affected.

Note: The pip show nautobot command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine, where the product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. In Nautobot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2025-49142 Affected Nautobot Versions

2 component(s)
Fixed Versions:
1.6.322.4.10
Product / Package Ecosystem Affected Versions Fixed Version
nautobot
PyPI
< 1.6.32
1.6.32
nautobot
PyPI
≥ 2.0.0
< 2.4.10
2.4.10

References

Frequently Asked Questions

What is CVE-2025-49142?
CVE-2025-49142 is a security vulnerability in Nautobot involving Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating under CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine.
Which Nautobot versions are affected?
Affected versions include releases prior to 1.6.32, 2.4.10 across affected packages: nautobot.
What version fixes CVE-2025-49142?
Upgrading to 1.6.32, 2.4.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nautobot affected?
Yes, nautobot is affected in releases prior to 1.6.32, 2.4.10. Upgrade your dependency to 1.6.32, 2.4.10 or later.
What CWE is associated with CVE-2025-49142?
CVE-2025-49142 is classified under CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine (The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.).
How can I check PyPI dependencies for CVE-2025-49142?
Run the dependency tree command: 'pip show nautobot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wjw6-95h5-4jpx",
  "modified" : "2026-06-08T20:18:22Z",
  "published" : "2025-06-10T20:17:15Z",
  "aliases" : [ "CVE-2025-49142" ],
  "summary" : "Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating",
  "details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nAll users of Nautobot versions prior to 2.4.10 or prior to 1.6.32 are potentially affected.\n\nDue to insufficient security configuration of the Jinja2 templating feature used in computed fields, custom links, etc. in Nautobot:\n\n1. 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.\n2. 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.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nNautobot versions 1.6.32 and 2.4.10 will include fixes for the vulnerability.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nThe vulnerability can be partially mitigated by configuring object permissions appropriately to limit the below actions to only trusted users:\n\n- `extras.add_secret`\n- `extras.change_secret`\n- `extras.view_secret`\n- `extras.add_computedfield`\n- `extras.change_computedfield`\n- `extras.add_customlink`\n- `extras.change_customlink`\n- `extras.add_jobbutton`\n- `extras.change_jobbutton`\n\n### References\n_Are there any links users can visit to find out more?_\n\n- https://jinja.palletsprojects.com/en/stable/sandbox/\n- https://docs.djangoproject.com/en/4.2/ref/templates/api/#alters-data-description\n- https://github.com/nautobot/nautobot/pull/7417\n- https://github.com/nautobot/nautobot/pull/7429",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nautobot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.32"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nautobot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.4.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nautobot/nautobot/security/advisories/GHSA-wjw6-95h5-4jpx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49142"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nautobot/nautobot/pull/7417"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nautobot/nautobot/pull/7429"
  }, {
    "type" : "WEB",
    "url" : "https://docs.djangoproject.com/en/4.2/ref/templates/api/#alters-data-description"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nautobot/nautobot"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2025-74.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/nautobot/PYSEC-2025-79.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://jinja.palletsprojects.com/en/stable/sandbox"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1336" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-10T20:17:15Z",
    "nvd_published_at" : "2025-06-10T16:15:42Z"
  }
}