Vulnerability: Crash in ced v0.1.0 when passing non-Buffer data types

Vulnerability: Crash in ced v0.1.0 when passing non-Buffer data types

CVE-2021-39131 · HIGH Severity

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

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)`.

Learn more about our Web Application Penetration Testing UK.