CVE-2021-39131Published Aug 17, 2021 · Aug 17Updated Oct 20
Improper Handling of Unexpected Data Type in ced
sonicdoe ced
High7.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ced npm |
|
|
Original description
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)`.
From the CVE record · GitHub_M