CVE-2022-33171
Critical
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
SeverityCritical
CVSS9.8
Exploit probability—
ProductTypeorm
PublishedJul 4, 2022
First seenJul 4, 2022
How to fix
Update
- typeorm typeorm0.3.0 or later
- typeorm0.3.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| typeorm typeorm | v < 0.3.0 | 0.3.0 |
| typeormnpm | v < 0.3.0 | 0.3.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.