Skip to main content
← All vulnerabilities
CVE-2021-39131GHSA-27WQ-QX3Q-FXM9

Improper Handling of Unexpected Data Type in ced

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.0
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • sonicdoe ced

    fixed in 1.0.0

  • cednpm

    fixed in 1.0.0

References 3

GitHub · sonicdoe/ced