Live threats

All CVEs / Ghost

CVE-2022-21227Ghost Sqlite3

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.0%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
May 1, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

The package sqlite3 before 5.0.3 are vulnerable to Denial of Service (DoS) which will invoke the toString function of the passed parameter. If passed an invalid Function object it will throw and crash the V8 engine.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sqlite3.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm sqlite3 ≥ 5.0.0 < 5.0.3 5.0.3 npm install sqlite3@5.0.3

Per OSV / GitHub Advisories (GHSA-9qrh-qjmc-5w2p). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ghostsqlite3< 5.0.3

Official sources

References

Links published by the sources. Open them with care.