
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-39131 affects the ced package, which detects character encoding using Google's compactencdet library. The vulnerability was discovered and disclosed on August 17, 2021. The issue affects ced version 0.1.0, where passing data types other than Buffer causes the Node.js process to crash (GitHub Advisory).
The vulnerability is classified as an Improper Handling of Unexpected Data Type (CWE-241) issue. It has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The vulnerability can be triggered remotely without requiring privileges or user interaction, primarily affecting system availability (NVD).
When exploited, this vulnerability results in a crash of the Node.js process, leading to a denial of service condition. The impact is particularly severe in scenarios where the library accepts data from untrusted sources over a network and passes it directly to ced (GitHub Advisory).
The vulnerability has been patched in ced version 1.0.0. Users can upgrade from v0.1.0 without any breaking changes. As a workaround, before passing an argument to ced, developers can verify it's a Buffer using Buffer.isBuffer(obj) (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."