{"id":"GHSA-jqv5-7xpx-qj74","summary":"sqlite vulnerable to code execution due to Object coercion","details":"### Impact\n\nDue to the underlying implementation of `.ToString()`, it's possible to execute arbitrary JavaScript, or to achieve a denial-of-service, if a binding parameter is a crafted Object.\n\nUsers of `sqlite3` v5.0.0 - v5.1.4 are affected by this.\n\n### Patches\n\nFixed in v5.1.5. All users are recommended to upgrade to v5.1.5 or later.\n\n### Workarounds\n\n* Ensure there is sufficient sanitization in the parent application to protect against invalid values being supplied to binding parameters.\n\n### References\n\n* Commit: https://github.com/TryGhost/node-sqlite3/commit/edb1934dd222ae55632e120d8f64552d5191c781\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Email us at [security@ghost.org](mailto:security@ghost.org)\n\nCredits: Dave McDaniel of Cisco Talos","aliases":["CVE-2022-43441"],"modified":"2026-07-08T06:28:03.823203979Z","published":"2023-03-13T20:00:52Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-03-13T20:00:52Z","nvd_published_at":"2023-03-16T21:15:00Z","cwe_ids":["CWE-913","CWE-915"]},"references":[{"type":"WEB","url":"https://github.com/TryGhost/node-sqlite3/security/advisories/GHSA-jqv5-7xpx-qj74"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-43441"},{"type":"WEB","url":"https://github.com/TryGhost/node-sqlite3/commit/edb1934dd222ae55632e120d8f64552d5191c781"},{"type":"PACKAGE","url":"https://github.com/TryGhost/node-sqlite3"},{"type":"WEB","url":"https://talosintelligence.com/vulnerability_reports/TALOS-2022-1645"}],"affected":[{"package":{"name":"sqlite3","ecosystem":"npm","purl":"pkg:npm/sqlite3"},"ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.1.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-jqv5-7xpx-qj74/GHSA-jqv5-7xpx-qj74.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}