{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:ced_project:ced:0.1.0:*:*:*:*:node.js:*:*",
            "extracted_events": [
              {
                "introduced": "0.1.0"
              },
              {
                "last_affected": "0.1.0"
              }
            ],
            "source": [
              "CPE_STRING",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "8545f46ea4da3517b98fc49a9086b0e107f7758c"
            },
            {
              "last_affected": "8545f46ea4da3517b98fc49a9086b0e107f7758c"
            },
            {
              "fixed": "a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3"
            },
            {
              "fixed": "2be643baa9626bbe11db075f7b5013bef6488087"
            }
          ],
          "repo": "https://github.com/sonicdoe/ced",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.1.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-27wq-qx3q-fxm9"
  ],
  "database_specific": {},
  "details": "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)`.",
  "id": "CVE-2021-39131",
  "modified": "2026-07-08T05:37:24.201572626Z",
  "published": "2021-08-17T23:15:07.507Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/sonicdoe/ced/releases/tag/v1.0.0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}