CVE-2022-33171
highpriority · attend · 56EPSS 0.214 · 98 %ileexploit · PoCEUUSEPSS · scored 2026-10-27
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
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- open-flaw/CVE-2022-33171CVE-2022-33171: TypeORM SQL Injection VulnerabilityPoC · poc_in_github
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-fx4w-v43j-vc45SQL injection in typeORM2022-07-05ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- http://seclists.org/fulldisclosure/2022/Aug/7cnnvd
- https://github.com/typeorm/typeorm/compare/0.2.45...0.3.0cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2022-33171cnnvd
- https://packetstormsecurity.com/files/167634/TypeORM-SQL-Injection.htmlcnnvd
- https://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.htmlcnnvd
- https://seclists.org/fulldisclosure/2022/Jun/51cnnvd
- http://packetstormsecurity.com/files/168096/TypeORM-0.3.7-Information-Disclosure.htmlenisa_euvd
- http://seclists.org/fulldisclosure/2022/Aug/7enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan