{"id":"CVE-2021-39131","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)`.","aliases":["GHSA-27wq-qx3q-fxm9"],"modified":"2026-07-09T12:20:30.968857Z","published":"2021-08-17T23:15:07.507Z","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sonicdoe/ced","events":[{"introduced":"8545f46ea4da3517b98fc49a9086b0e107f7758c"},{"last_affected":"8545f46ea4da3517b98fc49a9086b0e107f7758c"},{"fixed":"a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3"},{"fixed":"2be643baa9626bbe11db075f7b5013bef6488087"}],"database_specific":{"source":["CPE_STRING","REFERENCES"],"cpe":"cpe:2.3:a:ced_project:ced:0.1.0:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0.1.0"},{"last_affected":"0.1.0"}]}}],"versions":["0.1.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-39131.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}