typeorm
Affected
- introduced
0, fixed0.3.0(semver)
Fixed versions
0.3.0
Fix
- Fixed version
0.3.0npm install [email protected]
Advisory
Also known as: CVE-2022-33171
SQL injection in 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.
Critical Basis: The source's own band: CRITICAL
0, fixed 0.3.0 (semver)0.3.0
0.3.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0