The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | typeorm (npm) | before 0.3.0 | 0.3.0 | Patch available | GHSA-fx4w-v43j-vc45 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- typeorm (npm) Vendor— Affected before 0.3.0 Fixed in 0.3.0 Patch available GHSA-fx4w-v43j-vc45
Remediation
- Fix · GHSA-fx4w-v43j-vc45 typeorm (npm) Fixed in 0.3.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-33171
- 2026-10-03 Alias added: GHSA-fx4w-v43j-vc45
References
More Typeorm vulnerabilities
- TI-2020-06576 Prototype pollution in typeorm CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-33171 · CVE Program
- CVE-2022-33171 · NVD
- FIRST EPSS
- GHSA-fx4w-v43j-vc45 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences