CVE-2022-21227
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-21227 affects the sqlite3 package versions before 5.0.3. This vulnerability was discovered on January 31, 2022, and publicly disclosed on April 28, 2022. The vulnerability is a Denial of Service (DoS) issue that occurs when the toString function of a passed parameter is invoked. The flaw specifically affects the Node.js implementation of sqlite3 (NVD, Snyk).

Technical details

The vulnerability occurs when an invalid Function object is passed to the toString function, which can cause the V8 engine to crash. The issue has been assigned a CVSS v3.1 base score of 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The vulnerability is characterized by network attack vector, low attack complexity, no privileges required, and no user interaction needed (Snyk).

Impact

When successfully exploited, this vulnerability results in a total loss of availability, causing the V8 engine to crash. The impact is primarily on the availability of the system, with no direct effect on confidentiality or integrity. The attack can lead to a sustained or persistent denial of service condition (Snyk).

Mitigation and workarounds

The vulnerability has been fixed in sqlite3 version 5.0.3. Users are recommended to upgrade to version 5.0.3 or higher to mitigate this security issue. The fix was implemented through a commit that verifies the toString() returns valid data before processing (Github Patch).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management