CVE-2022-33171The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object. When input to the function…
- 9.8CriticalCVSS base score
- 21.4%Exploitation in 30 daysEPSS · top 2.4% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By mitre
- 21 days later
· 21 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 21.4% · top 2.4% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmtypeormGHSA-fx4w-v43j-vc45 (opens in a new tab)
References
References4
- https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0 (opens in a new tab)x_refsource_MISCx_transferred
- https://seclists.org/fulldisclosure/2022/Jun/51 (opens in a new tab)x_refsource_MISCx_transferred
- 20220815 Re: typeorm CVE-2022-33171 (opens in a new tab)mailing-listx_refsource_FULLDISCx_transferred
- http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-6336 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-fx4w-v43j-vc45 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-33171)Record last updated .