# CVE-2022-33171: SQL injection in typeORM

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.00%, higher than 81% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-07-04T15:51:49.000Z
- Modified: 2026-06-17T04:48:32.313Z
- Also known as: GHSA-fx4w-v43j-vc45
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- typeorm (npm): before 0.3.0
- typeorm typeorm: before 0.3.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://seclists.org/fulldisclosure/2022/Jun/51> (exploit, mailing-list, third-party-advisory, web)
- <http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.html> (exploit, third-party-advisory, vdb-entry, web)
- <https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0> (release-notes, third-party-advisory, web)
- <http://seclists.org/fulldisclosure/2022/Aug/7> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-33171> (advisory)

## Sources

- CVE List: [CVE-2022-33171](https://www.cve.org/CVERecord?id=CVE-2022-33171), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fx4w-v43j-vc45](https://github.com/advisories/GHSA-fx4w-v43j-vc45), CC-BY-4.0, modified 2024-03-21
- NVD: [CVE-2022-33171](https://nvd.nist.gov/vuln/detail/CVE-2022-33171), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-33171 · Whole record: https://cve.day/CVE-2022-33171.json · Rebuilt by cve.day 2026-11-25T22:58:12.703Z
