Skip to main content
← All vulnerabilities
CVE-2022-33171GHSA-FX4W-V43J-VC45

The findOne function in TypeORM before 0.3.0 can either be supplied with a string or a FindOneOptions object.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.0
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

  • typeormnpm

    fixed in 0.3.0

References 5

GitHub · typeorm/typeorm

seclists.org

packetstormsecurity.com

GitHub · open-flaw/CVE-2022-33171