Vulnerability · Published Aug 31, 2021 · Assigned by GitHub_M

CVE-2021-39176Missing Release of Memory after Effective Lifetime in detect-character-encoding

High 7.5

In plain English

A high-severity memory leak 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 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

detect-character-encoding is a package for detecting character encoding using ICU. In detect-character-encoding v0.3.0 and earlier, allocated memory is not released. The problem has been patched in detect-character-encoding v0.3.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmdetect-character-encoding0.3.1GHSA-5rwj-j5m3-3chj

Affected products (as reported)

VendorProductVersions
sonicdoe detect-character-encoding < 0.3.1

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

References