# GHSA-crhg-xgrg-vvcc: a12nserver vulnerable to potential SQL Injections via Knex dependency

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-01-13T21:34:29.000Z
- Modified: 2023-01-13T21:34:29.000Z
- Weaknesses: CWE-89

## Description

### 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/

(As written by GitHub Advisory Database.)

## Affected

- @curveball/a12n-server (npm): from 0.20.0 before 0.23.0

## References

- <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)

## Sources

- GitHub Advisory Database: [GHSA-crhg-xgrg-vvcc](https://github.com/advisories/GHSA-crhg-xgrg-vvcc), CC-BY-4.0, modified 2023-01-13

---

Page: https://cve.day/GHSA-crhg-xgrg-vvcc · Whole record: https://cve.day/GHSA-crhg-xgrg-vvcc.json · Rebuilt by cve.day 2026-11-25T22:56:45.144Z
