Vulnerabilities/

SQL injection in typeORM

Severity:
High

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.

Recommendation

Update the typeorm package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
typeorm
Anything's wrong? Let us know Last updated on March 21, 2024

This issue is available in SmartScanner Professional

See Pricing