CVE-2022-33171
CRITICAL 9.8EPSS 21.4%
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 v3.1 NVD
- 9.8 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS v2.0 NVD
- 7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P - EPSS
- 21.39% chance of exploitation in the next 30 days, 98th percentile
- Published
- 2022-07-04
- Updated
- 2024-08-03
Proof-of-concept exploits (3)
- http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html
- https://seclists.org/fulldisclosure/2022/Jun/51
- open-flaw/CVE-2022-331710★ · 2025-12-08
Security advisories
- http://seclists.org/fulldisclosure/2022/Aug/7
- typeorm/typeorm/compare/0.2.45...0.3.0
- advisories/GHSA-fx4w-v43j-vc45