Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-49142 — jinja2

🟠 CVSS 7.1 — High ✅ No Known Exploit OSV
7.1
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating

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

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity low, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: Low — limited, and the attacker does not choose what is affected.
  • Availability impact: None.

Affected software

CVE-2025-49142 is recorded against 2 packages.

  • jinja2
  • nautobot (from 2.0.0 up to 2.4.10)

Timeline and source

Published on 10 June 2025 and last revised on 9 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from OSV.

References

docs.djangoproject.com (Web)
jinja.palletsprojects.com (Web)
github.com (Advisory)
github.com (Fix)
github.com (Fix)

Other advisories for this package

jinja2 has other advisories on record. If you are patching this one, these are worth checking on the same host:

Details

Severity High
CVSS Score 7.1
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2025-06-10
Updated 2026-08-20
Modified 2026-06-09

Affected Packages

Software From version Fixed in
jinja2
nautobot 2.0.0 2.4.10

Similar Threats

Site Security Check

Is jinja2 part of your stack?

CVE-2025-49142 is rated CVSS 7.1 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025