{"answers":{"affected":"1 open source package ship an affected version, including mysql-shell. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-46850 in the wild and no public exploit code.","fix":"Upgrade mysql-shell to 2026.5.0 or later.","what":"CVE-2026-46850 is a critical code injection vulnerability in Oracle Corporation MySQL Shell, published on 16 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-46850 and fix it if it is affected.\n\nWhat it is: CVE-2026-46850 is a critical code injection vulnerability in Oracle Corporation MySQL Shell, published on 16 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-46850 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mysql-shell (Bitnami): affected from 2026.2.0; fixed in 2026.5.0\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-46850/ (Markdown: https://insights.sbomify.com/CVE-2026-46850/index.md)","id":"CVE-2026-46850","markdown":"https://insights.sbomify.com/CVE-2026-46850/index.md","name":"CVE-2026-46850","record":{"aliases":["BIT-mysql-shell-2026-46850","GHSA-hp88-v9x6-h934"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"MySQL Shell VS Code","requires_auth":"low_privilege","summary":"A code injection vulnerability in MySQL Shell for VS Code allows low-privileged attackers to take over the application via network access.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"oracle","cpe":[{"product":"mysql_shell","vendor":"oracle"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Vulnerability in the MySQL Shell product of Oracle MySQL (component: Shell for VS Code).   The supported version that is affected is 2026.2.0+9.6.1. Easily exploitable vulnerability allows low privileged attacker with network access via HTTP to compromise MySQL Shell.  While the vulnerability is in MySQL Shell, attacks may significantly impact additional products (scope change).  Successful attacks of this vulnerability can result in takeover of MySQL Shell. CVSS 3.1 Base Score 9.9 (Confidentiality, Integrity and Availability impacts).  CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).","ecosystems":["Bitnami"],"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":"Code injection in MySQL Shell","id":"CVE-2026-46850","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":1,"n_references":1,"next":{"headline":"Code injection in PeopleSoft Enterprise CS Campus Community","id":"CVE-2026-46851"},"packages":[{"ecosystem":"Bitnami","fixed":["2026.5.0"],"introduced":["2026.2.0"],"last_affected":[],"package":"mysql-shell","purl":"pkg:bitnami/mysql-shell","source":"BIT-mysql-shell-2026-46850"}],"prev":{"headline":"Missing authorization in PeopleSoft Enterprise CS Student Financials","id":"CVE-2026-46849"},"products":["MySQL Shell"],"published":"2026-06-16","related":[{"cvss_score":8.5,"headline":"Auth bypass in MySQL Shell","id":"CVE-2026-46870","kev_date_added":null,"published":"2026-06-16"},{"cvss_score":6.5,"headline":"Cross-site request forgery in MySQL Shell","id":"CVE-2026-46869","kev_date_added":null,"published":"2026-06-16"},{"cvss_score":6.5,"headline":"Missing authorization in MySQL Shell","id":"CVE-2026-46871","kev_date_added":null,"published":"2026-06-16"},{"cvss_score":4.2,"headline":"Missing authorization in MySQL Server","id":"CVE-2022-21555","kev_date_added":null,"published":"2022-07-19"},{"cvss_score":2.5,"headline":"Denial of service in MySQL Server","id":"CVE-2022-21535","kev_date_added":null,"published":"2022-07-19"}],"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":"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":"total"},"state":"PUBLISHED","updated":"2026-06-18","vendors":["Oracle Corporation"]},"summary":"A code injection vulnerability in MySQL Shell for VS Code allows low-privileged attackers to take over the application via network access.","url":"https://insights.sbomify.com/CVE-2026-46850/"}