CVE-2021-39176

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.

Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H · source cna
Exploit chance (EPSS)
1.891%
chance of exploitation in the next 30 days
higher than 79.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-08-31Published by the CNA18:05 UTC
  2. 2021-09-01GitHub advisory published (GHSA-5rwj-j5m3-3chj)1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-5rwj-j5m3-3chj, affected packages:

PackageVulnerable versionsFixed in
npm detect-character-encodingbefore 0.3.10.3.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
detect-character-encoding_project detect-character-encodingbefore 0.3.1fixed in 0.3.10.3.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources