{"id":"CVE-2021-39131","aliases":["GHSA-27wq-qx3q-fxm9"],"url":"https://o3.security/vulnerability/CVE-2021-39131","summary":"Improper Handling of Unexpected Data Type in ced","details":"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)`.","published":"2021-08-17T23:15:07.507Z","modified":"2026-07-09T12:20:30.968857Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"ced","fixedVersion":"1.0.0"}],"fix":{"url":"https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3","label":"sonicdoe/ced@a4d9f10"},"references":[{"type":"ADVISORY","url":"https://github.com/sonicdoe/ced/releases/tag/v1.0.0"},{"type":"FIX","url":"https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3"},{"type":"FIX","url":"https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T12:20:30.968857Z"}}