High severityNVD Advisory· Published Aug 17, 2021· Updated Aug 4, 2024
Improper Handling of Unexpected Data Type in ced
CVE-2021-39131
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).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
cednpm | < 1.0.0 | 1.0.0 |
Affected products
2Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-27wq-qx3q-fxm9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-39131ghsaADVISORY
- github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3ghsax_refsource_MISCWEB
- github.com/sonicdoe/ced/releases/tag/v1.0.0ghsax_refsource_MISCWEB
- github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.