Vulnerability DatabaseGHSA-288x-p79m-78v5

GHSA-288x-p79m-78v5: 
JavaScript vulnerability analysis and mitigation

Impact

When a query is formatted, a parameter value is placed directly after the preceding SQL text. If a placeholder directly follows a minus sign with no space (balance-?) and the bound value is negative, the result contains -- (balance--5), which PostgreSQL, SQLite, MSSQL and Oracle parse as the start of a line comment. Everything after it on the same line is ignored, including later predicates. MySQL and MariaDB are not affected, as they require whitespace after --. An application is affected only if all of the following hold:

  • it uses a hand-written raw query or raw fragment where a ? or named placeholder directly follows a -,
  • the value bound to that placeholder is a number that an untrusted party can set to a negative value,
  • further conditions follow on the same line of the SQL. In that case the remaining conditions of that one statement are dropped, so a select can return rows those conditions would have excluded, and an update or delete can match more rows than intended. The attacker controls only the sign of a numeric value; no SQL text can be injected. Queries generated by the ORM itself never place a placeholder directly after a minus.

Patches

Fixed in 7.2.12 and 6.6.20.

Workarounds

Put a space between the minus and the placeholder (balance - ?), or validate that the value is not negative.


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