CVE-2022-35942
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-35942 is a critical SQL injection vulnerability discovered in the LoopBack PostgreSQL connector. The vulnerability stems from improper input validation on the contains LoopBack filter, which could allow attackers to perform arbitrary SQL injection attacks. The issue affects versions prior to 5.5.1 and was patched in version 5.5.1 (GitHub Advisory).

Technical details

The vulnerability occurs when the extended filter property contains is permitted to be interpreted by the Postgres connector. The issue manifests when any of the following conditions are met: connecting to the database via DataSource with allowExtendedProperties: true, using the connector's CRUD methods directly, or using the connector's other methods to interpret the LoopBack filter. The vulnerability has received a CVSS v3.1 base score of 10.0 CRITICAL (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) from NVD, indicating its severe nature (NVD).

Impact

If exploited, this vulnerability could affect both the confidentiality and integrity of data stored in the connected database. The critical CVSS score indicates that successful exploitation could lead to complete compromise of the affected system's confidentiality, integrity, and availability (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to version 5.5.1 or later which contains the patch. For those unable to upgrade immediately, several workarounds are available: remove the allowExtendedProperties: true DataSource setting, add allowExtendedProperties: false DataSource setting, or manually sanitize user input for the contains LoopBack filter when passing directly to connector functions (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management