PT-2022-7852 · Knex.Js · Knex.Js
Thething
·
Published
2022-12-19
·
Updated
2025-12-03
·
CVE-2016-20018
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Knex.js versions through 2.3.0
Description
The issue is a limited SQL injection vulnerability that can be exploited to ignore the WHERE clause of a SQL query. This vulnerability has been fixed in version 2.4.0. Users of a12nserver that use MySQL might be vulnerable to SQL injection bugs, which could let an attacker obtain OAuth2 Access Tokens for unrelated users.
Recommendations
For versions through 2.3.0, update to version 2.4.0 to resolve the issue.
As a temporary workaround, consider restricting access to MySQL queries to minimize the risk of exploitation.
Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Knex.Js