What’s Vulnerable › Vulnerabilities
CVE-2021-39131: Improper Handling of Unexpected Data Type in ced
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-17 · updated 2026-06-17
- Weakness: CWE-241
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)`.
Affected products
- sonicdoe ced: 0.1.0
References
- https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3
- https://github.com/sonicdoe/ced/releases/tag/v1.0.0
- https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9
- https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3
- https://github.com/sonicdoe/ced/releases/tag/v1.0.0
- https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9
Get alerted when CVE-2021-39131 or the next vulnerability affects your stack