CVE-2022-33171 in the critical feed json
SQL injection in typeORM
published 2022-07-04 4 y ago modified 2026-06-17 4 mo ago also GHSA-fx4w-v43j-vc45 , EUVD-2022-6336
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 21.4%
- EPSS 21.4% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- npm typeorm 0.3.0
- typeorm typeorm 0.3.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
21.39% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- seclists.org https://seclists.org/fulldisclosure/2022/Jun/51 referenced PoC, tagged "exploit" by a source, unverified
- packetstormsecurity.com http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | typeorm | <0.3.0 |
0.3.0 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
seclists.org
/fulldisclosure/2022/Jun/51
web, exploit, mailing-list, third-party-advisory
-
packetstormsecurity.com
/files/168096/TypeORM-0.3.7-Information-Disclosure.html
web, exploit, third-party-advisory, vdb-entry
-
github.com
/typeorm/typeorm/compare/0.2.45...0.3.0
web, release-notes, third-party-advisory
-
seclists.org
/fulldisclosure/2022/Aug/7
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-33171
advisory
Sources
- CVE List CVE-2022-33171
- GitHub Advisory GHSA-fx4w-v43j-vc45
- NVD CVE-2022-33171
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.