Skip to content

CVE-2021-39131 Improper Handling of Unexpected Data Type in ced

HighCVSS 7.5 EPSS 1.9%
Published
Updated
Exploit status
No public exploit known

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

Upgrade path

3 packages: 1 fixed.

PackageAffectedFixed inStatus
npm ced(npm) < 1.0.0 1.0.0 Fixed
ced project ced = 0.1.0 No fix listed Versions listed
sonicdoe ced = < 1.0.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm ced(npm) < 1.0.0 1.0.0
ced project ced = 0.1.0 No fix listed
sonicdoe ced = < 1.0.0 No fix listed

References