Vulnerability DatabaseGHSA-j4pj-2xg4-35f6

GHSA-j4pj-2xg4-35f6: 
JavaScript vulnerability analysis and mitigation

Impact

The clientUrl option (also set via MIKRO_ORM_CLIENT_URL) is split into separate connection options (host, port, user, password, database) in the PostgreSQL, MySQL and MariaDB drivers. The query string was not processed apart from the schema parameter, so TLS parameters such as sslmode, sslrootcert or ssl had no effect. A URL like postgresql://user:password@db.example.com:5432/app?sslmode=verify-full therefore opened an unencrypted connection, without any warning or error, as long as the database server accepted one. An attacker able to intercept the traffic between the application and the database could read or modify it, including the credentials sent during authentication. Applications are affected only if all of the following apply:

  • the connection is configured via clientUrl with TLS parameters in its query string,
  • TLS is not configured via driverOptions,
  • the database server accepts unencrypted connections. Servers that enforce TLS reject such a connection, so the misconfiguration is visible there right away. The MongoDB and Oracle drivers pass the clientUrl to the client as is and are not affected.

Patches

Fixed in 7.2.13 and 6.6.20. The TLS parameters from clientUrl are now mapped to the ssl option of the database client: sslmode, ssl, sslcert, sslkey and sslrootcert in PostgreSQL, and ssl in MySQL and MariaDB. In MySQL and MariaDB, the unsupported sslmode parameter now throws an error. After upgrading, a connection that used to be established without encryption will negotiate TLS, and will fail if the server does not support it.

Workarounds

Configure TLS via driverOptions, which takes precedence over the URL:

MikroORM.init({
  clientUrl: 'postgresql://user:password@db.example.com:5432/app',
  driverOptions: { ssl: true }, // `{ connection: { ssl: true } }` in v6
});

Enforcing TLS on the database server also prevents the unencrypted connection.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qjc-mqvq-rch9HIGH7.6
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-j4pj-2xg4-35f6HIGH7.4
  • JavaScript logoJavaScript
  • @mikro-orm/mariadb
NoYesNov 27, 2026
GHSA-vrvp-5qx2-7xcmMEDIUM6.5
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-9phx-3fcw-32vfLOW3.7
  • JavaScript logoJavaScript
  • saxen
NoYesNov 27, 2026
GHSA-288x-p79m-78v5LOW3.7
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026

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

Additional Wiz resources

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