Vulnerability · Published Jul 4, 2022 · Assigned by mitre

CVE-2022-33171

Critical 9.8

In plain English

A critical-severity security flaw in the typeorm package (npm). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 21.4% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)21.4%top 2.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmtypeorm0.3.0GHSA-fx4w-v43j-vc45

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References