{"answers":{"affected":"4 open source packages ship an affected version, including @mikro-orm/core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-34220 in the wild and no public exploit code.","fix":"Upgrade @mikro-orm/core to a fixed version for your release line: 6.6.10 or 7.0.6.","what":"CVE-2026-34220 is a critical SQL injection vulnerability in mikro-orm, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34220 and fix it if it is affected.\n\nWhat it is: CVE-2026-34220 is a critical SQL injection vulnerability in mikro-orm, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-34220 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @mikro-orm/core (npm): affected all versions; fixed in 6.6.10\n- @mikro-orm/core (npm): affected all versions; fixed in 6.6.10\n- @mikro-orm/core (npm): affected from 7.0.0-dev.0; fixed in 7.0.6\n- @mikro-orm/core (npm): affected from 7.0.0-dev.0; fixed in 7.0.6\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-34220/ (Markdown: https://insights.sbomify.com/CVE-2026-34220/index.md)","id":"CVE-2026-34220","markdown":"https://insights.sbomify.com/CVE-2026-34220/index.md","name":"CVE-2026-34220","record":{"aliases":["GHSA-gwhv-j974-6fxm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js ORM library","requires_auth":"none","summary":"Attackers can execute arbitrary SQL commands via crafted objects in MikroORM, potentially reading or modifying database contents.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mikroorm","vendor":"mikro-orm"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to versions 6.6.10 and 7.0.6, there is a SQL injection vulnerability when specially crafted objects are interpreted as raw SQL query fragments. This issue has been patched in versions 6.6.10 and 7.0.6.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-04-27","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-27T04:30:33Z","kind":"github_poc","ref":"https://github.com/EQSTLab/CVE-2026-34220","stars":1,"title":"SQL Injection vulnerability in MikroORM"},{"date":"2026-08-21T04:19:26Z","kind":"github_poc","ref":"https://github.com/yym8538/CVE-2026-34220","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"MikroORM is vulnerable to SQL Injection via specially crafted object","id":"CVE-2026-34220","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"MikroORM has Prototype Pollution in Utils.merge","id":"CVE-2026-34221"},"packages":[{"ecosystem":"npm","fixed":["6.6.10"],"introduced":["0"],"last_affected":[],"package":"@mikro-orm/core","purl":null,"source":"GHSA-gwhv-j974-6fxm"},{"ecosystem":"npm","fixed":["6.6.10"],"introduced":["0"],"last_affected":[],"package":"@mikro-orm/core","purl":"pkg:npm/%40mikro-orm/core","source":"GHSA-gwhv-j974-6fxm"},{"ecosystem":"npm","fixed":["7.0.6"],"introduced":["7.0.0-dev.0"],"last_affected":[],"package":"@mikro-orm/core","purl":null,"source":"GHSA-gwhv-j974-6fxm"},{"ecosystem":"npm","fixed":["7.0.6"],"introduced":["7.0.0-dev.0"],"last_affected":[],"package":"@mikro-orm/core","purl":"pkg:npm/%40mikro-orm/core","source":"GHSA-gwhv-j974-6fxm"}],"prev":{"headline":"libp2p-gossipsub: Gossipsub PRUNE Backoff Heartbeat Instant Overflow","id":"CVE-2026-34219"},"products":["mikro-orm"],"published":"2026-03-31","related":[{"cvss_score":8.3,"headline":"MikroORM has Prototype Pollution in Utils.merge","id":"CVE-2026-34221","kev_date_added":null,"published":"2026-03-31"}],"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-02","vendors":["mikro-orm"]},"summary":"Attackers can execute arbitrary SQL commands via crafted objects in MikroORM, potentially reading or modifying database contents.","url":"https://insights.sbomify.com/CVE-2026-34220/"}