Vulnerability record · CVE-2022-33171 · published 4 July 2022
CVE-2022-33171: Typeorm sql injection vulnerability
Typeorm · Typeorm
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
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html | ExploitThird Party AdvisoryVDB Entry |
| http://seclists.org/fulldisclosure/2022/Aug/7 | Mailing ListThird Party Advisory |
| https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0 | Release NotesThird Party Advisory |
| https://seclists.org/fulldisclosure/2022/Jun/51 | ExploitMailing ListThird Party Advisory |
| http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html | ExploitThird Party AdvisoryVDB Entry |
| http://seclists.org/fulldisclosure/2022/Aug/7 | Mailing ListThird Party Advisory |
| https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0 | Release NotesThird Party Advisory |
| https://seclists.org/fulldisclosure/2022/Jun/51 | ExploitMailing ListThird Party Advisory |
Track CVE-2022-33171 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-33171), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.