{"id":"CVE-2022-33171","aliases":["CVE-2022-33171","GHSA-fx4w-v43j-vc45"],"related":[],"kind":"vulnerability","state":"published","title":"SQL injection in typeORM","summary":"The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object. When input to the function is a user-controlled parsed JSON object, supplying a crafted FindOneOptions instead of an id string leads to SQL injection. NOTE: the vendor's position is that the user's application is responsible for input validation","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object. When input to the function is a user-controlled parsed JSON object, supplying a crafted FindOneOptions instead of an id string leads to SQL injection. NOTE: the vendor's position is that the user's application is responsible for input validation","source":"cvelist"},{"lang":"en","text":"The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object. When input to the function is a user-controlled parsed JSON object, supplying a crafted FindOneOptions instead of an id string leads to SQL injection. NOTE: the vendor's position is that the user's application is responsible for input validation.","format":"markdown","source":"ghsa"},{"lang":"es","text":"** EN DISPUTA ** La función findOne en TypeORM versiones anteriores a 0.3.0, puede recibir una cadena o un objeto FindOneOptions. Cuando la entrada a la función es un objeto JSON analizado controlado por el usuario, el suministro de un FindOneOptions diseñado en lugar de una cadena de identificación conlleva a una inyección SQL. NOTA: la posición del proveedor es que la aplicación del usuario es responsable de la comprobación de la entrada","source":"nvd"}],"published":"2022-07-04T15:51:49.000Z","modified":"2026-06-17T04:48:32.313Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"npm","package":"typeorm","purl":"pkg:npm/typeorm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.3.0"}],"vendor":"typeorm","product":"typeorm","cpe":"cpe:2.3:a:typeorm:typeorm:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://seclists.org/fulldisclosure/2022/Jun/51","tags":["exploit","mailing-list","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://seclists.org/fulldisclosure/2022/Aug/7","tags":["mailing-list","third-party-advisory","web","x-refsource-fulldisc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html","tags":["exploit","third-party-advisory","vdb-entry","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33171","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-06-10T18:07:13.061Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-33171","url":"https://www.cve.org/CVERecord?id=CVE-2022-33171","licence":"CVE Terms of Use","modified":"2024-08-03T08:01:20.214Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fx4w-v43j-vc45","url":"https://github.com/advisories/GHSA-fx4w-v43j-vc45","licence":"CC-BY-4.0","modified":"2024-03-21T19:12:58.107Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-33171","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33171","licence":"Public domain","modified":"2026-06-17T04:48:32.313Z"}],"updatedAt":"2026-11-25T22:58:12.703Z","epss":{"score":0.02004,"percentile":0.81477,"date":"2026-11-30T12:00:22.000Z"}}