{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-35942","published":"2022-08-12T23:15:07.717000Z","last_modified":"2026-06-17T04:52:34.313000Z","status":"Modified","cvss":{"version":"3.1","score":10.0,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:linuxfoundation:loopback-connector-postgresql:*:*:*:*:*:node.js:*:*","part":"a","vendor":"linuxfoundation","product":"loopback-connector-postgresql","version_end_excluding":"5.5.1"}],"cpes_truncated":false,"vendors":["linuxfoundation"],"products":["linuxfoundation/loopback-connector-postgresql"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.0075,"percentile":0.51201,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-j259-6c58-9m58","ecosystem":"npm","name":"loopback-connector-postgresql","purl":"pkg:npm/loopback-connector-postgresql","ranges":[{"introduced":"0","fixed":"5.5.1"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":75,"links":{"html_es":"/es/cve/CVE-2022-35942/","html_en":"/en/cve/CVE-2022-35942/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-35942","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-35942"},"untrusted":{"vendor_name":"Linuxfoundation","product_name":"Loopback-connector-postgresql","desc_en":"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.","affected":[{"untrusted_vendor":"loopbackio","untrusted_product":"loopback-connector-postgresql","versions":[]}],"references":[{"url":"https://github.com/loopbackio/loopback-connector-postgresql/commit/d57406c6737692a3a106b58a35406290cddb23e5","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/loopbackio/loopback-connector-postgresql/security/advisories/GHSA-j259-6c58-9m58","tags":["Mitigation","Third Party Advisory"]}]}}