Vulnerability · Published Aug 24, 2021 · Assigned by GitHub_M

CVE-2021-39157Improper Handling of Exceptional Conditions in detect-character-encoding

High 7.5

In plain English

A high-severity security flaw in detect-character-encoding from sonicdoe. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)2.1%top 18.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmdetect-character-encoding0.7.0GHSA-jqfh-8hw5-fqjr

Affected products (as reported)

VendorProductVersions
sonicdoe detect-character-encoding < 0.7.0

Weakness: CWE-755 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References