Advisory

GHSA-fx4w-v43j-vc45

Also known as: CVE-2022-33171

Summary

SQL injection in typeORM

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-07-05 00:00 UTC
Modified
2024-03-21 19:12 UTC

Affected packages and fixes

typeorm

npm · All systems

Affected

  • introduced 0, fixed 0.3.0 (semver)

Fixed versions

0.3.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences