{"id":"CVE-2022-33171","published":"2022-07-04T15:51:49Z","modified":"2024-08-03T08:01:20Z","title":"The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object","vendor":null,"product":null,"tier":"tail","description":{"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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.21393,"percentile":0.97664,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0","tags":["x_refsource_MISC"]},{"url":"https://seclists.org/fulldisclosure/2022/Jun/51","tags":["x_refsource_MISC"]},{"url":"http://seclists.org/fulldisclosure/2022/Aug/7","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html","tags":["x_refsource_MISC"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.53},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-12-08","earliestUrl":"https://github.com/open-flaw/CVE-2022-33171","repos":[{"name":"open-flaw/CVE-2022-33171","url":"https://github.com/open-flaw/CVE-2022-33171","stars":0,"created":"2025-12-08"}]},"first":{"date":"2025-12-08","source":"PoC-in-GitHub","url":"https://github.com/open-flaw/CVE-2022-33171"},"provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-10T18:07:13.061321Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"typeorm","vulnerableRanges":["<0.3.0"],"patched":["0.3.0"],"from":["GHSA-fx4w-v43j-vc45"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-6336","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html"]}