Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Web

CVE-2026-142191 — knex

High · CVSS 7.7 First seen December 02, 2026

One of 3 knex vulnerabilities published together by NVD: our article covers all of them.

WebDatabasesVulnerabilities

Summary

Knex through 3.3.0 contains an sql injection vulnerability in the MSSQL dialect that allows attackers to inject T-SQL via table or view names. Attackers can supply names containing a single quote to close the object_id() literal in dropTableIfExists, dropViewIfExists, or createTableIfNotExists and execute arbitrary T-SQL with the database connection's privileges.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.7 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Special conditions
only in some setups or conditions
Login needed
yes, a normal user account
User action needed
no
Impact
high on confidentiality, integrity and availability
Impact on other systems
none

Vector CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 7.5 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Affected and fixed versions

ProductAffected versionsFixed in
knex≤ 3.3.0—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • knex

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-142191?

Knex through 3.3.0 contains an sql injection vulnerability in the MSSQL dialect that allows attackers to inject T-SQL via table or view names. Attackers can supply names containing a single quote to close the objectid() literal in dropTableIfExists, dropViewIfExists, or createTableIfNotExists and execute arbitrary T-SQL with the database connection's privileges. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).

How severe is CVE-2026-142191?

CVE-2026-142191 has a CVSS 4.0 base score of 7.7 (high), from the CNA (vulncheck.com). An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.

Is CVE-2026-142191 being exploited?

Not as far as is known: CVE-2026-142191 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.

Which versions are affected by CVE-2026-142191?

knex ≤ 3.3.0.

How do I fix CVE-2026-142191?

Follow the advisories and patches linked on this page under References for fixed versions and workarounds.

Timeline & sources

References

Related vulnerabilities & news