{"answers":{"affected":"5 open source packages ship an affected version, including nautobot. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-49142 in the wild and no public exploit code.","fix":"Upgrade nautobot to a fixed version for your release line: 1.6.32 or 2.4.10.","what":"CVE-2025-49142 is a medium-severity code injection vulnerability in nautobot, published on 10 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-49142 and fix it if it is affected.\n\nWhat it is: CVE-2025-49142 is a medium-severity code injection vulnerability in nautobot, published on 10 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-49142 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nautobot (PyPI): affected all versions; fixed in 1.6.32, 2.4.10\n- nautobot (PyPI): affected all versions; fixed in 1.6.32\n- nautobot (PyPI): affected all versions; fixed in 1.6.32\n- nautobot (PyPI): affected from 2.0.0; fixed in 2.4.10\n- nautobot (PyPI): affected from 2.0.0; fixed in 2.4.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-49142/ (Markdown: https://insights.sbomify.com/CVE-2025-49142/index.md)","id":"CVE-2025-49142","markdown":"https://insights.sbomify.com/CVE-2025-49142/index.md","name":"CVE-2025-49142","record":{"aliases":["GHSA-wjw6-95h5-4jpx","PYSEC-2025-79"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Network automation platform","requires_auth":"low_privilege","summary":"Malicious users can exploit Jinja2 templating to expose secrets and modify data, bypassing permission controls in Nautobot.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nautobot","vendor":"networktocode"}],"cvss":{"score":6,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Nautobot vulnerable to secrets exposure and data manipulation through Jinja2 templating","id":"CVE-2025-49142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":5,"n_references":5,"next":{"headline":"Nautobot may allows uploaded media files to be accessible without authentication","id":"CVE-2025-49143"},"packages":[{"ecosystem":"PyPI","fixed":["1.6.32","2.4.10"],"introduced":["0","2.0.0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"PYSEC-2025-79"},{"ecosystem":"PyPI","fixed":["1.6.32"],"introduced":["0"],"last_affected":[],"package":"nautobot","purl":null,"source":"GHSA-wjw6-95h5-4jpx"},{"ecosystem":"PyPI","fixed":["1.6.32"],"introduced":["0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"GHSA-wjw6-95h5-4jpx"},{"ecosystem":"PyPI","fixed":["2.4.10"],"introduced":["2.0.0"],"last_affected":[],"package":"nautobot","purl":null,"source":"GHSA-wjw6-95h5-4jpx"},{"ecosystem":"PyPI","fixed":["2.4.10"],"introduced":["2.0.0"],"last_affected":[],"package":"nautobot","purl":"pkg:pypi/nautobot","source":"GHSA-wjw6-95h5-4jpx"}],"prev":{"headline":"HaxCMS-PHP Command Injection Vulnerability","id":"CVE-2025-49141"},"products":["nautobot"],"published":"2025-06-10","related":[{"cvss_score":8.5,"headline":"Nautobot: Webhook definitions could be used for server-side request forgery (SSRF)","id":"CVE-2026-44797","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":7.5,"headline":"Nautobot's BANNER_* configuration can be used to inject arbitrary HTML content into Nautobot pages","id":"CVE-2024-34707","kev_date_added":null,"published":"2024-05-13"},{"cvss_score":7.5,"headline":"Reflected Cross-site Scripting potential in all object list views in Nautobot","id":"CVE-2024-32979","kev_date_added":null,"published":"2024-05-01"},{"cvss_score":7.5,"headline":"Remote code execution in Jinja2 template rendering in Nautobot","id":"CVE-2023-25657","kev_date_added":null,"published":"2023-02-21"},{"cvss_score":7.1,"headline":"Nautobot: GitRepository.current_head field should not be writable through REST API","id":"CVE-2026-44798","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":7.1,"headline":"Nautobot has XSS potential in rendered Markdown fields","id":"CVE-2024-23345","kev_date_added":null,"published":"2024-01-22"},{"cvss_score":7.1,"headline":"nautobot has XSS potential in custom links, job buttons, and computed fields","id":"CVE-2023-48705","kev_date_added":null,"published":"2023-11-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-10","vendors":["nautobot"]},"summary":"Malicious users can exploit Jinja2 templating to expose secrets and modify data, bypassing permission controls in Nautobot.","url":"https://insights.sbomify.com/CVE-2025-49142/"}