SQL injection via unrestricted joinType concatenation
Published Aug 9, 2026 · Updated Aug 9, 2026
SQL injection in node-sql-query 0.1.25 through 0.1.28 allows remote attackers to alter generated SELECT statements via joinType. SelectQuery.build in lib/Select.js uppercases the from() option and appends it directly before JOIN without restricting it to valid join keywords. Exploitation requires a consuming application to pass untrusted input into joinType and execute the resulting query; consequences depend on the database account and driver configuration.
Summary
What happened
SQL injection in node-sql-query 0.1.25 through 0.1.28 allows remote attackers to alter generated SELECT statements via joinType. SelectQuery.build in lib/Select.js uppercases the from() option and appends it directly before JOIN without restricting it to valid join keywords. Exploitation requires a consuming application to pass untrusted input into joinType and execute the resulting query; consequences depend on the database account and driver configuration.
The record
- CVE
- CVE-2026-19351
- Published
- Aug 9, 2026
- Updated
- Aug 9, 2026
- Vendor
- dresende
- Product
- node-sql-query
- Classifications
- CWE-89, CWE-74, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 9, 2026CVE publishedPublication date reported by the CVE source.
- Aug 9, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0.1.25
- Affected versionversion=0.1.26
- Affected versionversion=0.1.27
- Affected versionversion=0.1.28
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- node-sql-query joinType SQL fragment injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo