GHSA-fx4w-v43j-vc45

Suggest an improvement
Source
https://github.com/advisories/GHSA-fx4w-v43j-vc45
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-fx4w-v43j-vc45/GHSA-fx4w-v43j-vc45.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fx4w-v43j-vc45
Aliases
Published
2022-07-05T00:00:54Z
Modified
2024-03-21T19:12:58.107504Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-07-04T16:15:00Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-89"
    ],
    "github_reviewed_at": "2024-03-21T18:57:32Z",
    "severity": "CRITICAL"
}
References

Affected packages

npm / typeorm

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-fx4w-v43j-vc45/GHSA-fx4w-v43j-vc45.json"