{"id":"CVE-2025-49142","aliases":["CVE-2025-49142","GHSA-wjw6-95h5-4jpx","PYSEC-2025-79","PYSEC-2025-74"],"related":[],"kind":"vulnerability","state":"published","title":"Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nautobot es una fuente de confianza en red y una plataforma de automatización de red. Todos los usuarios de versiones de Nautobot anteriores a la 2.4.10 o a la 1.6.32 podrían verse afectados. Debido a una configuración de seguridad insuficiente de la función de plantillas Jinja2, utilizada en campos calculados, enlaces personalizados, etc., en Nautobot, un usuario malintencionado podría configurar este conjunto de funciones de forma que exponga el valor de los secretos definidos en Nautobot al renderizar el contenido de la plantilla, o que invoque las API de Python para modificar datos dentro de Nautobot al renderizar dicho contenido, omitiendo así los permisos de objeto asignados al usuario que lo visualiza. Las versiones 1.6.32 y 2.4.10 de Nautobot incluirán correcciones para esta vulnerabilidad. Esta vulnerabilidad se puede mitigar parcialmente configurando adecuadamente los permisos de objeto para limitar ciertas acciones solo a usuarios de confianza.","source":"nvd"}],"published":"2025-06-10T15:40:21.105Z","modified":"2026-06-17T09:30:49.120Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-1336"],"affected":[{"ranges":[{"version":"< 1.6.32","status":"affected"},{"version":">= 2.0.0, < 2.4.10","status":"affected"}],"vendor":"nautobot","product":"nautobot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.32"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.4.10"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.32"},{"status":"affected","introduced":"2.0.0","fixed":"2.4.10"}],"vendor":"networktocode","product":"nautobot","cpe":"cpe:2.3:a:networktocode:nautobot:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"ecosystem":"PyPI","package":"jinja2","purl":"pkg:pypi/jinja2","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.32"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.4.10"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"pysec"}],"references":[{"url":"https://github.com/nautobot/nautobot/security/advisories/GHSA-wjw6-95h5-4jpx","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/pull/7417","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/pull/7429","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://docs.djangoproject.com/en/4.2/ref/templates/api/#alters-data-description","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://jinja.palletsprojects.com/en/stable/sandbox","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49142","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nautobot/nautobot","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2025-74.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nautobot/PYSEC-2025-79.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-10T17:10:17.082Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49142","url":"https://www.cve.org/CVERecord?id=CVE-2025-49142","licence":"CVE Terms of Use","modified":"2025-06-10T17:10:21.784Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wjw6-95h5-4jpx","url":"https://github.com/advisories/GHSA-wjw6-95h5-4jpx","licence":"CC-BY-4.0","modified":"2026-06-09T17:11:19.526Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49142","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49142","licence":"Public domain","modified":"2026-06-17T09:30:49.120Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-74","url":"https://osv.dev/vulnerability/PYSEC-2025-74","licence":"CC-BY-4.0","modified":"2026-06-09T17:00:05.532Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-79","url":"https://osv.dev/vulnerability/PYSEC-2025-79","licence":"CC-BY-4.0","modified":"2026-06-09T17:11:19.526Z"}],"updatedAt":"2026-11-25T22:58:59.021Z","epss":{"score":0.00385,"percentile":0.34652,"date":"2026-12-02T12:00:21.000Z"}}