CVE-2021-39157
published high CVSS 3.1 · 7.5Improper Handling of Exceptional Conditions in detect-character-encoding
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sonicdoe | — | detect-character-encoding< 0.7.0 | Affected | Not stated | GitHub_M |
Description
detect-character-encoding is an open source character encoding inspection library. In detect-character-encoding v0.6.0 and earlier, data matching no charset causes the Node.js process to crash. The problem has been patched in [detect-character-encoding v0.7.0](https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.7.0). No workaround are available and all users should update to resolve this issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sonicdoe | detect-character-encoding | < 0.7.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-755 CWE-755: Improper Handling of Exceptional Conditions
References
3Provider assertions
2GitHub_M · cna
Improper Handling of Exceptional Conditions in detect-character-encoding
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 09117ab8bea70256a52a8496afc5e57bbb954bdc6aa77abaa302109e1d2c2fca
- Ingested
- 23 Sep 2026, 07:55:36 UTC
- Source record
- Official CVE record