CVEvulnerability

CVE-2021-39131

7.5 HIGH Published 2021-08-17 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2021-08-17
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1 ([email protected])
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0 ([email protected])
5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:N/A:P
Weaknesses
CWE-241, CWE-755

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 configurations

• ced project ced 0.1.0

Related

Weakness · CWE (2)

  • CWE-241 Improper Handling of Unexpected Data Type weakness
  • CWE-755 Improper Handling of Exceptional Conditions weakness

References