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)`.
Advisories
Source ID Title
EUVD EUVD EUVD-2021-1506 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)`.
Github GHSA Github GHSA GHSA-27wq-qx3q-fxm9 Improper Handling of Unexpected Data Type in ced
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2024-08-04T01:58:17.881Z

Reserved: 2021-08-16T00:00:00

Link: CVE-2021-39131

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2021-08-17T23:15:07.507

Modified: 2024-11-21T06:18:39.077

Link: CVE-2021-39131

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses