Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-32763

CVE-2026-32763: Kysely TypeScript SQL Injection Vulnerability

CVE-2026-32763 is a SQL injection flaw in Kysely, a TypeScript SQL query builder affecting MySQL and SQLite dialects. Attackers can inject arbitrary SQL through JSON path compilation. This article covers technical details, affected versions up to 0.28.11, impact, and mitigation steps.

Published: March 27, 2026

CVE-2026-32763 Overview

Kysely, a type-safe TypeScript SQL query builder, contains a SQL injection vulnerability in its JSON path compilation functionality for MySQL and SQLite dialects. Versions up to and including 0.28.11 are affected by this flaw, which allows attackers to inject arbitrary SQL through the visitJSONPathLeg() function. The vulnerability arises because user-controlled values from .key() and .at() methods are directly appended into single-quoted JSON path string literals ('$.key') without proper escaping of single quotes.

Critical Impact

Attackers can break out of the JSON path string context and inject arbitrary SQL commands, potentially leading to unauthorized data access, data manipulation, or complete database compromise in applications using Kysely with MySQL or SQLite.

Affected Products

  • Kysely versions up to and including 0.28.11 using MySQL dialect
  • Kysely versions up to and including 0.28.11 using SQLite dialect
  • Applications utilizing Kysely's JSON path functions (.key() and .at()) with untrusted input

Discovery Timeline

  • 2026-03-20 - CVE CVE-2026-32763 published to NVD
  • 2026-03-20 - Last updated in NVD database

Technical Details for CVE-2026-32763

Vulnerability Analysis

The vulnerability exists in the visitJSONPathLeg() function within Kysely's query compilation logic. This function is responsible for constructing JSON path expressions used in MySQL and SQLite queries. The core issue is an inconsistency in how different types of SQL constructs are sanitized: while sanitizeIdentifier() properly doubles delimiter characters to prevent injection in identifiers, the JSON path compilation lacks equivalent protection.

When a developer uses the .key() or .at() methods to construct JSON path expressions, user-supplied values are concatenated directly into the JSON path string without escaping single quote characters. This allows an attacker to terminate the JSON path string prematurely and inject malicious SQL code into the query.

The vulnerability is classified as CWE-89 (SQL Injection), representing a failure to properly neutralize special elements used in SQL commands.

Root Cause

The root cause is improper input sanitization in the JSON path compilation process. Both JSON path strings and identifiers are non-parameterizable SQL constructs that require manual escaping. However, only identifiers received proper protection through the sanitizeIdentifier() function, which doubles delimiter characters. The visitJSONPathLeg() function failed to implement equivalent escaping for single quotes within JSON path string literals.

Attack Vector

This vulnerability is exploitable over the network by any user who can influence input values that are passed to Kysely's .key() or .at() JSON path methods. The attack requires no authentication or user interaction. An attacker can craft a malicious string containing a single quote followed by SQL commands. When this string is processed by the vulnerable JSON path compilation, the single quote terminates the legitimate JSON path string, and the subsequent SQL is interpreted as part of the query.

The exploitation mechanism involves injecting a payload such as a value containing ' followed by SQL syntax that would be executed by the database. This could enable unauthorized data extraction, data modification, or other database operations depending on the application's database permissions.

Detection Methods for CVE-2026-32763

Indicators of Compromise

  • Unusual SQL query patterns in database logs containing malformed JSON path expressions
  • Database error messages indicating syntax errors in JSON path operations
  • Unexpected database queries originating from application code using Kysely
  • Evidence of data exfiltration through SQL injection techniques in web application logs

Detection Strategies

  • Monitor application dependencies for Kysely versions 0.28.11 and earlier
  • Implement Web Application Firewall (WAF) rules to detect SQL injection patterns in request parameters
  • Enable detailed database query logging to identify anomalous JSON path queries
  • Conduct static code analysis to identify usage of .key() and .at() methods with untrusted input

Monitoring Recommendations

  • Review database audit logs for queries containing unusual characters in JSON path expressions
  • Set up alerts for database errors related to JSON path parsing failures
  • Monitor network traffic for patterns consistent with SQL injection exploitation attempts
  • Implement runtime application self-protection (RASP) to detect and block injection attacks

How to Mitigate CVE-2026-32763

Immediate Actions Required

  • Upgrade Kysely to version 0.28.12 or later immediately
  • Audit all application code using Kysely to identify usage of .key() and .at() methods
  • Implement input validation to reject single quotes in values passed to JSON path functions
  • Consider implementing additional database-level access controls to limit potential impact

Patch Information

The vulnerability has been fixed in Kysely version 0.28.12. The patch addresses the missing single quote escaping in the JSON path compilation process. For detailed information about the fix, refer to the GitHub Commit Changes and the GitHub Release v0.28.12. The security advisory is available at GitHub Security Advisory GHSA-wmrf-hv6w-mr66.

Workarounds

  • Sanitize all user input before passing to .key() or .at() methods by removing or escaping single quotes
  • Implement allowlists for JSON path key names if the application's use case permits
  • Use parameterized queries for the broader application context to limit exploitation opportunities
  • Apply database user privilege restrictions to minimize potential damage from successful exploitation
bash
# Upgrade Kysely to the patched version
npm update kysely@0.28.12

# Or install the specific patched version
npm install kysely@^0.28.12

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechKysely

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Commit Changes

  • GitHub Release v0.28.12

  • GitHub Security Advisory GHSA-wmrf-hv6w-mr66
  • Related CVEs
  • CVE-2026-33468: Kysely TypeScript SQL Injection Vulnerability

  • CVE-2026-33442: Kysely SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English