CVE-2022-35942 json
loopback-connector-postgresql Vulnerable to Improper Sanitization of `contains` Filter
published 2022-08-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-j259-6c58-9m58 , EUVD-2022-6573
- cvss
- 9.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
Improper input validation on the `contains` LoopBack filter may allow for arbitrary SQL injection. 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. A patch was released in version 5.5.1. This affects users who does any of the following: - Connect to the database via the DataSource with `allowExtendedProperties: true` setting OR - Uses the connector's CRUD methods directly OR - Uses the connector's other methods to interpret the LoopBack filter. Users who are unable to upgrade should do the following if applicable: - Remove `allowExtendedProperties: true` DataSource setting - Add `allowExtendedProperties: false` DataSource setting - When passing directly to the connector functions, manually sanitize the user input for the `contains` LoopBack filter beforehand.
Patch / fix
- npm loopback-connector-postgresql 5.5.1
- linuxfoundation loopback-connector-postgresql 5.5.1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
0.66% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 9.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | loopback-connector-postgresql | <5.5.1 |
5.5.1 |
Affected products
- loopbackio loopback-connector-postgresql
Classification
References
-
github.com
/loopbackio/loopback-connector-postgresql/commit/d57406c6737692a3a106b58a35406290cddb23e5
web, patch, third-party-advisory
-
github.com
/loopbackio/loopback-connector-postgresql/security/advisories/GHSA-j259-6c58-9m58
web, mitigation, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-35942
advisory
-
github.com
/loopbackio/loopback-connector-postgresql
web
Sources
- CVE List CVE-2022-35942
- GitHub Advisory GHSA-j259-6c58-9m58
- NVD CVE-2022-35942
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.