Improper Handling of Exceptional Conditions Affecting sonicdoe/ced package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.89% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-SONICDOECED-2370610
  • published26 Jan 2022
  • disclosed17 Aug 2021
  • creditUnknown

Introduced: 17 Aug 2021

CVE-2021-39131  (opens in a new tab)
CWE-755  (opens in a new tab)

How to fix?

There is no fixed version for sonicdoe/ced.

Overview

Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions 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).

CVSS Base Scores

version 3.1