CVE-2021-39157

Improper Handling of Exceptional Conditions in detect-character-encoding

HIGH
7.5
CVSS Score
Published: August 24, 2021 at 06:15 PM UTC
Updated: June 17, 2026 at 04:03 AM UTC
2 products affected across 2 vendorsDetect Character EncodingCharacter Encoding Project Detect Character Encoding

Using detect-character-encoding by sonicdoe?

Get instant alerts when new vulnerabilities affect detect-character-encoding - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.7.0
Affected range stops below 0.7.0, so it looks safe — our inference, not a vendor statement
v < 0.7.0
Affected range stops below 0.7.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-755

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card