Critical (9.8) in typeorm typeorm. EPSS 21% chance of exploitation in the next 30 days. Fixed in typeorm 0.3.0.
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
Severity
CVSS 3.1
9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
21% chance of exploitation in the next 30 days; higher than 97% of CVEs (scores of 2026-10-31)