{"id":"CVE-2022-33171","aliases":["GHSA-fx4w-v43j-vc45"],"url":"https://o3.security/vulnerability/CVE-2022-33171","summary":"SQL injection in typeORM","details":"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","published":"2022-07-04T15:51:49Z","modified":"2026-08-12T03:51:43.030212961Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.20299,"percentile":0.97332,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"npm","name":"typeorm","fixedVersion":"0.3.0"}],"fix":null,"references":[{"type":"WEB","url":"http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html"},{"type":"WEB","url":"https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0"},{"type":"WEB","url":"https://seclists.org/fulldisclosure/2022/Jun/51"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/33xxx/CVE-2022-33171.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33171"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/Aug/7"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:43.030212961Z"}}