CVE-2021-39131
HIGH 7.5CVSS 3.1Improper Handling of Unexpected Data Type in ced
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).
- Published
- 17 Aug 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-241CWE-755
- Also known as
- GHSA-27wq-qx3q-fxm9
- Sources
- NVDJSONOSV GHSA-27wq-qx3q-fxm9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ced_project | cedcpe:2.3:a:ced_project:ced:0.1.0:*:*:*:*:node.js:*:* |
= 0.1.0 | |
| OSV | npm | ced | < 1.0.0 | 1.0.0 |
References
- https://github.com/sonicdoe/ced/commit/a4d9f10b6bf1cd468d1a5b9a283cdf437f8bb7b3 · Patch, Third Party Advisory, WEB
- https://github.com/sonicdoe/ced/releases/tag/v1.0.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/sonicdoe/ced/security/advisories/GHSA-27wq-qx3q-fxm9 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-39131 · ADVISORY
- https://github.com/sonicdoe/ced · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Aug 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 23 Aug 2021)