Description
A vulnerability was found in dresende node-sql-query 0.1.25/0.1.26/0.1.27/0.1.28. Affected by this vulnerability is the function SelectQuery.from/SelectQuery.build in the library lib/Select.js of the component Request Parameter Handler. Performing a manipulation results in sql injection. It is possible to initiate the attack remotely. The exploit has been made public and could be used. Upgrading to version 0.1.29 addresses this issue. The patch is named 3414c42f6de89826fa1f5f36f6139d1e6552778e. Upgrading the affected component is recommended.
Published: 2026-08-09
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The library node-sql-query builds SQL statements from request parameters via the SelectQuery.build function. A flaw in handling these parameters allows an attacker to inject arbitrary SQL because the function does not properly escape or parameterize user input. This weakness, classified as CWE-74 and CWE-89, can compromise the confidentiality and integrity of the underlying database, enabling a remote adversary to execute arbitrary queries, exfiltrate data, or modify records.

Affected Systems

The vulnerability affects the dresende node-sql-query library, specifically versions 0.1.25 through 0.1.28. The package is identified as dresende:node-sql-query in the CPE namespace. Upgrading to version 0.1.29 or later resolves the issue.

Risk and Exploitability

The CVSS v3.1 score of 6.9 indicates moderate severity, and no EPSS score is available, but the exploit has been made public and is remotely exploitable, meaning attackers already possess proven code to trigger the injection. The vulnerability is not listed in the CISA KEV catalog, yet the existence of a public exploit and the remote nature of the attack vector increase risk. The typical attack scenario involves sending a crafted HTTP request containing malicious input to the endpoint that invokes SelectQuery.build.

Generated by OpenCVE AI on August 9, 2026 at 12:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the node-sql-query package to version 0.1.29 or later, which includes the patch identified by commit 3414c42f6de89826fa1f5f36f6139d1e6552778e.
  • If an immediate upgrade is not possible, manually apply the patch changes from commit 3414c42f6de89826fa1f5f36f6139d1e6552778e to the local codebase, ensuring the SQL construction logic sanitizes request parameters.
  • Implement input validation or parameterization on all calls to SelectQuery.build, rejecting or escaping characters that could alter the SQL query structure, and monitor application logs for suspicious query execution patterns.

Generated by OpenCVE AI on August 9, 2026 at 12:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 09 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
Description A vulnerability was found in dresende node-sql-query 0.1.25/0.1.26/0.1.27/0.1.28. Affected by this vulnerability is the function SelectQuery.from/SelectQuery.build in the library lib/Select.js of the component Request Parameter Handler. Performing a manipulation results in sql injection. It is possible to initiate the attack remotely. The exploit has been made public and could be used. Upgrading to version 0.1.29 addresses this issue. The patch is named 3414c42f6de89826fa1f5f36f6139d1e6552778e. Upgrading the affected component is recommended.
Title dresende node-sql-query Request Parameter Select.js SelectQuery.build sql injection
First Time appeared Dresende
Dresende node-sql-query
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:dresende:node-sql-query:*:*:*:*:*:*:*:*
Vendors & Products Dresende
Dresende node-sql-query
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Dresende Node-sql-query
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-08-09T11:30:10.583Z

Reserved: 2026-08-08T16:29:28.085Z

Link: CVE-2026-19351

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-09T13:00:10Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')