GHSA-crhg-xgrg-vvcc
a12nserver vulnerable to potential SQL Injections via Knex dependency
Quick fix
GHSA-crhg-xgrg-vvcc — @curveball/a12n-server: upgrade to the fixed version with the command below.
npm install @curveball/a12n-server@0.23.0Details
### Impact
Users of a12nserver that use MySQL might be vulnerable to SQL injection bugs.
If you use a12nserver and MySQL, update as soon as possible. This SQL injection bug might let an attacker obtain OAuth2 Access Tokens for users unrelated to those that permitted OAuth2 clients.
### Patches
The knex dependency has been updated to 2.4.0 in a12nserver 0.23.0
### Workarounds
No further workarounds
### References
* https://github.com/knex/knex/issues/1227 * https://nvd.nist.gov/vuln/detail/CVE-2016-20018 * https://www.ghostccamm.com/blog/knex_sqli/
Are you affected?
Enter the version of the package you're using.
Affected packages
0.20.0Fixed in: 0.23.0npm install @curveball/a12n-server@0.23.0References
- https://github.com/curveball/a12n-server/security/advisories/GHSA-crhg-xgrg-vvcc[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2016-20018[ADVISORY]
- https://github.com/knex/knex/issues/1227[WEB]
- https://github.com/curveball/a12n-server/commit/f4acd7549043e6e2b8917b77a50dce0756a922cc[WEB]
- https://github.com/curveball/a12n-server[PACKAGE]
- https://github.com/curveball/a12n-server/releases/tag/v0.23.0[WEB]
- https://www.ghostccamm.com/blog/knex_sqli[WEB]