{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2026-4786 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.10.21, 3.11.16, 3.12.14 or 3.13.14.","what":"CVE-2026-4786 is a high-severity command injection vulnerability in CPython, published on 13 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-4786 and fix it if it is affected.\n\nWhat it is: CVE-2026-4786 is a high-severity command injection vulnerability in CPython, published on 13 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-4786 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5\n- python (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5\n- python-min (Bitnami): affected all versions; fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5\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-2026-4786/ (Markdown: https://insights.sbomify.com/CVE-2026-4786/index.md)","id":"CVE-2026-4786","markdown":"https://insights.sbomify.com/CVE-2026-4786/index.md","name":"CVE-2026-4786","record":{"aliases":["ALPINE-CVE-2026-4786","AZL-83054","BELL-CVE-2026-4786","BIT-libpython-2026-4786","BIT-python-2026-4786","BIT-python-min-2026-4786","CLSA-2026-1777660095","CLSA-2026-1777883384","CLSA-2026-1777884819","CLSA-2026-1777891107","DEBIAN-CVE-2026-4786","GHSA-cccx-m78h-m3xw","MINI-5xc7-6xpr-mx9r","MINI-7vqq-2q9w-c3cg","MINI-j6gj-hmrf-m7hq","MINI-pgh4-63g8-cmpw","MINI-xcjf-w62x-cpvg","PSF-0000-CVE-2026-4786","PSF-2026-17","RHSA-2026:19589","RHSA-2026:22144","RHSA-2026:35838","ROOT-OS-ALPINE-320-CVE-2026-4786","UBUNTU-CVE-2026-4786"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python standard library","requires_auth":"none","summary":"Attackers can inject shell commands via webbrowser.open() when URLs contain %action, bypassing previous mitigations in the Python standard library.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"Mitgation of CVE-2026-4519 was incomplete. If the URL contained \"%action\" the mitigation could be bypassed for certain browser types the \"webbrowser.open()\" API could have commands injected into the underlying shell. See CVE-2026-4519 for details.","ecosystems":["Bitnami","Red Hat:rhel_els:6","Red Hat:rhel_els:7"],"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":"Incomplete mitigation of CVE-2026-4519, %action expansion for command injection to webbrowser.open()","id":"CVE-2026-4786","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":26,"n_references":9,"next":{"headline":"Multiple Vulnerabilities affect IBM Tivoli Netcool Impact","id":"CVE-2026-4788"},"packages":[{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.14","3.14.5"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2026-4786"},{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.14","3.14.5"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2026-4786"},{"ecosystem":"Bitnami","fixed":["3.10.21","3.11.16","3.12.14","3.13.14","3.14.5"],"introduced":["0","3.11.0","3.12.0","3.13.0","3.14.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2026-4786"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:2.6.6-70.el6_10.4"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/redhat/python","source":"RHSA-2026:22144"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:2.6.6-70.el6_10.4"],"introduced":["0"],"last_affected":[],"package":"python-debuginfo","purl":"pkg:rpm/redhat/python-debuginfo","source":"RHSA-2026:22144"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:2.6.6-70.el6_10.4"],"introduced":["0"],"last_affected":[],"package":"python-devel","purl":"pkg:rpm/redhat/python-devel","source":"RHSA-2026:22144"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:2.6.6-70.el6_10.4"],"introduced":["0"],"last_affected":[],"package":"python-libs","purl":"pkg:rpm/redhat/python-libs","source":"RHSA-2026:22144"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:2.6.6-70.el6_10.4"],"introduced":["0"],"last_affected":[],"package":"python-test","purl":"pkg:rpm/redhat/python-test","source":"RHSA-2026:22144"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:2.6.6-70.el6_10.4"],"introduced":["0"],"last_affected":[],"package":"python-tools","purl":"pkg:rpm/redhat/python-tools","source":"RHSA-2026:22144"},{"ecosystem":"Red Hat:rhel_els:6","fixed":["0:2.6.6-70.el6_10.4"],"introduced":["0"],"last_affected":[],"package":"tkinter","purl":"pkg:rpm/redhat/tkinter","source":"RHSA-2026:22144"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/redhat/python","source":"RHSA-2026:19589"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"python-debug","purl":"pkg:rpm/redhat/python-debug","source":"RHSA-2026:19589"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"python-debuginfo","purl":"pkg:rpm/redhat/python-debuginfo","source":"RHSA-2026:19589"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"python-devel","purl":"pkg:rpm/redhat/python-devel","source":"RHSA-2026:19589"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"python-libs","purl":"pkg:rpm/redhat/python-libs","source":"RHSA-2026:19589"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"python-test","purl":"pkg:rpm/redhat/python-test","source":"RHSA-2026:19589"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"python-tools","purl":"pkg:rpm/redhat/python-tools","source":"RHSA-2026:19589"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3","purl":"pkg:rpm/redhat/python3","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3-debug","purl":"pkg:rpm/redhat/python3-debug","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3-debuginfo","purl":"pkg:rpm/redhat/python3-debuginfo","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3-devel","purl":"pkg:rpm/redhat/python3-devel","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3-idle","purl":"pkg:rpm/redhat/python3-idle","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3-libs","purl":"pkg:rpm/redhat/python3-libs","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3-test","purl":"pkg:rpm/redhat/python3-test","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:3.6.8-21.el7_9.6"],"introduced":["0"],"last_affected":[],"package":"python3-tkinter","purl":"pkg:rpm/redhat/python3-tkinter","source":"RHSA-2026:35838"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.7.5-94.el7_9.5"],"introduced":["0"],"last_affected":[],"package":"tkinter","purl":"pkg:rpm/redhat/tkinter","source":"RHSA-2026:19589"}],"prev":{"headline":"LatePoint \u003c= 5.3.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode","id":"CVE-2026-4785"},"products":["CPython"],"published":"2026-04-13","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"total"},"state":"PUBLISHED","updated":"2026-08-13","vendors":["Python Software Foundation"]},"summary":"Attackers can inject shell commands via webbrowser.open() when URLs contain %action, bypassing previous mitigations in the Python standard library.","url":"https://insights.sbomify.com/CVE-2026-4786/"}