{"cve":"CVE-2022-33171","nvd":{"published":"2022-07-04T16:15:08.757","modified":"2026-06-17T04:48:32.313","status":"Modified","description":"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","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-89"],"references":["http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html","http://seclists.org/fulldisclosure/2022/Aug/7","https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0","https://seclists.org/fulldisclosure/2022/Jun/51","http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html"],"products":["typeorm:typeorm"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-33171","score":0.21393,"percentile":0.97607,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fx4w-v43j-vc45","url":"https://osv.dev/vulnerability/GHSA-fx4w-v43j-vc45","summary":"SQL injection in typeORM","modified":"2024-03-21T19:12:58.107504Z","packages":[{"ecosystem":"npm","name":"typeorm","purl":"pkg:npm/typeorm","ranges":["<0.3.0"],"fixed":["0.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}