Kysely has a MySQL SQL Injection via Backslash Escape Bypass in non-type-safe usage of JSON path keys.
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| kysely-org | kysely | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Kysely-org | Kysely |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-fr9j-6mvq-frcv | Kysely has a MySQL SQL Injection via Backslash Escape Bypass in non-type-safe usage of JSON path keys. |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.460% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Kysely
Kysely kysely |
|
| CPEs | cpe:2.3:a:kysely:kysely:*:*:*:*:*:node.js:*:* | |
| Vendors & Products |
Kysely
Kysely kysely |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Kysely-org
Kysely-org kysely |
|
| Vendors & Products |
Kysely-org
Kysely-org kysely |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Kysely is a type-safe TypeScript SQL query builder. In versions 0.28.12 and 0.28.13, the `sanitizeStringLiteral` method in Kysely's query compiler escapes single quotes (`'` → `''`) but does not escape backslashes. On MySQL with the default `BACKSLASH_ESCAPES` SQL mode, an attacker can inject a backslash before a single quote to neutralize the escaping, breaking out of the JSON path string literal and injecting arbitrary SQL. Version 0.28.14 fixes the issue. | |
| Title | Kysely has a MySQL SQL Injection via Backslash Escape Bypass in non-type-safe usage of JSON path keys. | |
| Weaknesses | CWE-89 | |
| References |
| |
| Metrics |
cvssV3_1
|