Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ced
  4. ›
  5. CVE-2021-39131

CVE-2021-39131: Improper Handling of Exceptional Conditions

August 17, 2021 (updated November 7, 2023)

ced detects character encoding using Google’s compact_enc_det library. In ced, passing data types other than Buffer causes the Node.js process to crash. As a workaround, before passing an argument to ced, verify it’s a Buffer using Buffer.isBuffer(obj).

References

  • nvd.nist.gov/vuln/detail/CVE-2021-39131

Code Behaviors & Features

Detect and mitigate CVE-2021-39131 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 0.1.0

Fixed versions

  • 1.0.0

Solution

Upgrade to version 1.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-755: Improper Handling of Exceptional Conditions

Source file

npm/ced/CVE-2021-39131.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:54 +0000.