CVE-2018-25066
JavaScript vulnerability analysis and mitigation

Overview

A critical SQL injection vulnerability was discovered in PeterMu nodebatis up to version 2.1.x. The vulnerability was disclosed on January 6, 2023, and affects the SQL builder functionality of the package. The issue was assigned identifier CVE-2018-25066 (NVD).

Technical details

The vulnerability exists in the SQL builder component where user input was not properly escaped before being used in SQL queries. This could allow an attacker to inject malicious SQL commands. The issue was classified as CWE-89 (SQL Injection) (NVD CNA Status).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary SQL commands on the underlying database, potentially leading to unauthorized access, data manipulation, or data exfiltration.

Exploitability

The vulnerability was present in the SQL builder functionality which is a core component of the nodebatis package. Any application using nodebatis versions up to 2.1.x for database operations could be vulnerable to SQL injection attacks.

Mitigation and workarounds

The vulnerability was patched in version 2.2.0 of nodebatis. The fix includes proper escaping of SQL identifiers using the sqlstring library to prevent SQL injection (GitHub Release). Users should upgrade to version 2.2.0 or later to address this security issue.

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-2026-49473HIGH8.8
  • JavaScript logoJavaScript
  • @cedar-policy/authorization-for-expressjs
NoYesAug 13, 2026
CVE-2026-47717HIGH7.5
  • JavaScript logoJavaScript
  • fuxa-server
NoYesAug 12, 2026
CVE-2026-47718MEDIUM5.5
  • JavaScript logoJavaScript
  • fuxa-server
NoYesAug 12, 2026
CVE-2026-73425LOW3.7
  • JavaScript logoJavaScript
  • @astrojs/netlify
NoYesAug 12, 2026
CVE-2026-73427LOW2.1
  • JavaScript logoJavaScript
  • action_text-trix
NoYesAug 12, 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

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