# GHSA-hx5x-49mm-vmhw: SQL Injection in sails-mysql

- Severity: High 7.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T02:36:43.000Z
- Modified: 2021-09-27T22:39:39.000Z
- Weaknesses: CWE-89

## Description

Versions of `sails-mysql` prior to 0.10.8 are vulnerable to SQL Injection. The `sort` keyword is not properly sanitized and may allow attackers to inject SQL statements and execute arbitrary SQL queries


## Recommendation

Upgrade to version 0.10.8 or later.

(As written by GitHub Advisory Database.)

## Affected

- sails-mysql (npm): before 0.10.8

## References

- <https://github.com/balderdashy/sails/issues/6679> (web)
- <https://github.com/balderdashy/sails> (package)
- <https://snyk.io/vuln/SNYK-JS-SAILSMYSQL-174916> (web)
- <https://www.npmjs.com/advisories/950> (web)

## Sources

- GitHub Advisory Database: [GHSA-hx5x-49mm-vmhw](https://github.com/advisories/GHSA-hx5x-49mm-vmhw), CC-BY-4.0, modified 2021-09-27

---

Page: https://cve.day/GHSA-hx5x-49mm-vmhw · Whole record: https://cve.day/GHSA-hx5x-49mm-vmhw.json · Rebuilt by cve.day 2026-11-25T22:56:45.679Z
