Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. sqlite3
  4. ›
  5. CVE-2022-21227

CVE-2022-21227: Denial-of-Service due to fatal error when binding invalid parameters

April 28, 2022 (updated May 27, 2022)

The package sqlite3 before 5.0.3 is 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.

References

  • github.com/TryGhost/node-sqlite3/commit/593c9d498be2510d286349134537e3bf89401c4a
  • github.com/TryGhost/node-sqlite3/issues/1440
  • github.com/TryGhost/node-sqlite3/issues/1449
  • github.com/TryGhost/node-sqlite3/security/advisories/GHSA-9qrh-qjmc-5w2p
  • github.com/advisories/GHSA-9qrh-qjmc-5w2p
  • security.snyk.io/vuln/SNYK-JS-SQLITE3-2388645

Code Behaviors & Features

Detect and mitigate CVE-2022-21227 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 5.0.3

Fixed versions

  • 5.0.3

Solution

Upgrade to version 5.0.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Source file

npm/sqlite3/CVE-2022-21227.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.