Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-33171: The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object

69
This week
CRITICAL 9.8REMOTEUPGRADE

CVE-2022-33171 is a critical-severity flaw (CVSS 9.8) affecting typeorm. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 this priority

  • Critical severity
  • EPSS top 2%: very likely to be exploited
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance21.4% (top 2%)
CISA exploited listNo
WeaknessCWE-89
Published2022-07-04
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: typeorm

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

typeorm typeorm UPGRADE
Affected: < 0.3.0
Fixed in: 0.3.0
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls typeorm
2. UPGRADE to 0.3.0
npm install typeorm@">=0.3.0"

Exact fixes by distribution

npm · typeorm · FIXED · 0.3.0 · vulnerable: < 0.3.0 · source
npm install typeorm@">=0.3.0" npm ls typeorm
Fedora ELN · luksmeta · FIXED · 11-3.eln159 · FEDORA-2026-5176083b78 · source
sudo dnf upgrade --advisory=FEDORA-2026-5176083b78
Fedora 46 · openscad · FIXED · 2021.01-34.fc46 · FEDORA-2026-faf1721128 · source
sudo dnf upgrade --advisory=FEDORA-2026-faf1721128

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-33171?

typeorm: upgrade to 0.3.0. Exact commands for each OS are on this page.

Is CVE-2022-33171 being exploited?

CVE-2022-33171 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-33171 affect?

CVE-2022-33171 affects typeorm. Severity is critical (CVSS 9.8). 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 lea

How urgent is CVE-2022-33171?

Priority 69/100. Critical severity; EPSS top 2%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.