{"id":"CVE-2021-39131","published":"2021-08-17T19:55:09Z","modified":"2024-08-04T01:58:17Z","title":"Improper Handling of Unexpected Data Type in ced","vendor":"sonicdoe","product":"ced","tier":"tail","description":{"text":"ced detects character encoding using Google’s compact_enc_det library. In ced v0.1.0, passing data types other than `Buffer` causes the Node.js process to crash. The problem has been patched in ced v1.0.0. As a workaround, before passing an argument to ced, verify it’s a `Buffer` using `Buffer.isBuffer(obj)`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01891,"percentile":0.80098,"provenance":"source"},"cwes":[{"id":"CWE-241","name":"Improper Handling of Unexpected Data Type"}],"references":[{"url":"https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonicdoe/ced/releases/tag/v1.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":21.3,"factors":[{"name":"EPSS percentile","points":16.02},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sonicdoe","affectedVersions":[{"vendor":"sonicdoe","product":"ced","versions":["< 1.0.0"]}],"affected":[{"ecosystem":"npm","package":"ced","vulnerableRanges":["<1.0.0"],"patched":["1.0.0"],"from":["GHSA-27wq-qx3q-fxm9"],"provenance":"source"}],"summary":{"text":"The ced library (sonicdoe), which detects character encoding using Google's compact_enc_det, has an improper handling of unexpected data type flaw in v0.1.0, where passing any data type other than a Buffer crashes the Node.js process. An attacker with network access and no privileges or user interaction can trigger the crash by supplying a non-Buffer input, causing a denial of service in any application using the affected version.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:08:15Z"},"euvd":{"id":"EUVD-2021-1506","exploited":false,"provenance":"source"}}