loopback-connector-postgresql
Affected
- introduced
0, fixed5.5.1(semver)
Fixed versions
5.5.1
Fix
- Fixed version
5.5.1npm install [email protected]
Advisory
Also known as: CVE-2022-35942
loopback-connector-postgresql Vulnerable to Improper Sanitization of contains Filter
Improper input validation on the contains LoopBack filter may allow for arbitrary SQL injection.
Impact
When the extended filter property contains is permitted to be interpreted by the Postgres connector, it is possible to inject arbitrary SQL which may affect the confidentiality and integrity of data stored on the connected database.
This affects users who does any of the following:
allowExtendedProperties: true setting ORPatches
Patch release [email protected] has been published of which resolves this issue.
Workarounds
Users who are unable to upgrade should do the following if applicable:
allowExtendedProperties: true DataSource settingallowExtendedProperties: false DataSource settingcontains LoopBack filter beforehand.Critical Basis: The source's own band: CRITICAL
0, fixed 5.5.1 (semver)5.5.1
5.5.1npm install [email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0