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.

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-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