CVE-2021-39131 Improper Handling of Unexpected Data Type in ced
HighCVSS 7.5
EPSS 1.9%
- Published
- Updated
- Exploit status
- No public exploit known
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).
Upgrade path
3 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm ced(npm) | < 1.0.0 | 1.0.0 | Fixed |
| ced project ced | = 0.1.0 | No fix listed | Versions listed |
| sonicdoe ced | = < 1.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm ced(npm) | < 1.0.0 | 1.0.0 |
| ced project ced | = 0.1.0 | No fix listed |
| sonicdoe ced | = < 1.0.0 | No fix listed |
References
- github.com exploit patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com release-notes third-party-advisory
- github.com
- github.com product