{"cve":"CVE-2021-39131","nvd":{"published":"2021-08-17T23:15:07.507","modified":"2026-06-17T04:03:07.663","status":"Modified","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)`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-755","CWE-241"],"references":["https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3","https://github.com/sonicdoe/ced/releases/tag/v1.0.0","https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9","https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3","https://github.com/sonicdoe/ced/releases/tag/v1.0.0"],"products":["ced_project:ced"],"source":"nvd","synced_at":"2026-10-19T21:21:57.125947417+00:00"},"epss":{"cve":"CVE-2021-39131","score":0.01891,"percentile":0.79582,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-27wq-qx3q-fxm9","url":"https://osv.dev/vulnerability/GHSA-27wq-qx3q-fxm9","summary":"Improper Handling of Unexpected Data Type in ced","modified":"2026-07-08T06:28:22.894088623Z","packages":[{"ecosystem":"npm","name":"ced","purl":"pkg:npm/ced","ranges":["<1.0.0"],"fixed":["1.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}