SQL injection in typeORM
Critical severity
GitHub Reviewed
Published
Jul 5, 2022
to the GitHub Advisory Database
•
Updated Mar 21, 2024
Description
Published by the National Vulnerability Database
Jul 4, 2022
Published to the GitHub Advisory Database
Jul 5, 2022
Reviewed
Mar 21, 2024
Last updated
Mar 21, 2024
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.
References