{"url":"http://public2.vulnerablecode.io/api/packages/966615?format=json","purl":"pkg:npm/%40mikro-orm/core@5.4.3-dev.20","type":"npm","namespace":"@mikro-orm","name":"core","version":"5.4.3-dev.20","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"6.6.10","latest_non_vulnerable_version":"7.0.6","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/22413?format=json","vulnerability_id":"VCID-hv7r-ae8w-m7h8","summary":"MikroORM is vulnerable to SQL Injection via specially crafted object\n## Summary\n\nMikroORM versions <= 6.6.9 and <= 7.0.5 are vulnerable to SQL injection when specially crafted objects are interpreted as raw SQL query fragments.\n\n## Impact\n\nIf user-controlled input is passed directly to MikroORM query construction APIs, an attacker may inject raw SQL fragments. This can lead to SQL injection depending on the database and query being executed.\n\n## Affected usage\n\nThe issue occurs when untrusted objects are passed to ORM write APIs such as:\n\n- `wrap(entity).assign(userInput)` followed by `em.flush()`\n- `em.nativeUpdate()`\n- `em.nativeInsert()`\n- `em.create()` followed by `em.flush()`\n\nApplications that validate input types or enforce strict schema validation before passing data to MikroORM are not affected.\n\n## Fix\n\nThe vulnerability was caused by duck-typed detection of internal ORM marker properties.\n\nThe fix replaces these checks with symbol-based markers that cannot be reproduced by user input.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-34220","reference_id":"","reference_type":"","scores":[{"value":"0.00015","scoring_system":"epss","scoring_elements":"0.0321","published_at":"2026-05-29T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-34220"},{"reference_url":"https://github.com/mikro-orm/mikro-orm","reference_id":"","reference_type":"","scores":[{"value":"9.3","scoring_system":"cvssv4","scoring_elements":"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"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/mikro-orm/mikro-orm"},{"reference_url":"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-gwhv-j974-6fxm","reference_id":"","reference_type":"","scores":[{"value":"9.8","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"9.3","scoring_system":"cvssv4","scoring_elements":"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"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:Y/T:T/P:M/B:A/M:M/D:T/2026-04-02T15:18:51Z/"}],"url":"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-gwhv-j974-6fxm"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34220","reference_id":"","reference_type":"","scores":[{"value":"9.3","scoring_system":"cvssv4","scoring_elements":"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"},{"value":"CRITICAL","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34220"},{"reference_url":"https://github.com/advisories/GHSA-gwhv-j974-6fxm","reference_id":"GHSA-gwhv-j974-6fxm","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-gwhv-j974-6fxm"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/57649?format=json","purl":"pkg:npm/%40mikro-orm/core@6.6.10","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540mikro-orm/core@6.6.10"},{"url":"http://public2.vulnerablecode.io/api/packages/57650?format=json","purl":"pkg:npm/%40mikro-orm/core@7.0.6","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540mikro-orm/core@7.0.6"}],"aliases":["CVE-2026-34220","GHSA-gwhv-j974-6fxm"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-hv7r-ae8w-m7h8"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/23001?format=json","vulnerability_id":"VCID-udk7-p18p-23hh","summary":"MikroORM has Prototype Pollution in Utils.merge\nA prototype pollution vulnerability exists in the `Utils.merge` helper used internally by MikroORM when merging object structures.\n\nThe function did not prevent special keys such as `__proto__`, `constructor`, or `prototype`, allowing attacker-controlled input to modify the JavaScript object prototype when merged.\n\nExploitation requires application code to pass untrusted user input into ORM operations that merge object structures, such as entity property assignment or query condition construction.\n\nPrototype pollution may lead to denial of service or unexpected application behavior. In certain scenarios, polluted properties may influence query construction and potentially result in SQL injection depending on application code.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-34221","reference_id":"","reference_type":"","scores":[{"value":"0.00046","scoring_system":"epss","scoring_elements":"0.14756","published_at":"2026-05-29T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-34221"},{"reference_url":"https://github.com/mikro-orm/mikro-orm","reference_id":"","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:L/SA:L"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/mikro-orm/mikro-orm"},{"reference_url":"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-qpfv-44f3-qqx6","reference_id":"","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:L/SA:L"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-31T18:50:17Z/"}],"url":"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-qpfv-44f3-qqx6"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34221","reference_id":"","reference_type":"","scores":[{"value":"8.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:L/SA:L"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34221"},{"reference_url":"https://github.com/advisories/GHSA-qpfv-44f3-qqx6","reference_id":"GHSA-qpfv-44f3-qqx6","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-qpfv-44f3-qqx6"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/57649?format=json","purl":"pkg:npm/%40mikro-orm/core@6.6.10","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540mikro-orm/core@6.6.10"},{"url":"http://public2.vulnerablecode.io/api/packages/57650?format=json","purl":"pkg:npm/%40mikro-orm/core@7.0.6","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540mikro-orm/core@7.0.6"}],"aliases":["CVE-2026-34221","GHSA-qpfv-44f3-qqx6"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-udk7-p18p-23hh"}],"fixing_vulnerabilities":[],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540mikro-orm/core@5.4.3-dev.20"}