Missing Release of Memory after Effective Lifetime in detect-character-encoding
Priority LOW 37CWE-401Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-401.
Summary
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.
Why it matters now
EPSS 0.01891 79th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed detect-character-encoding (sonicdoe): 0.3.1detect-character-encoding (npm): 0.3.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sonicdoe | detect-character-encoding | before 0.3.1 | 0.3.1 | Patch available | CNA |
| — | detect-character-encoding (npm) | before 0.3.1 | 0.3.1 | Patch available | GHSA-5rwj-j5m3-3chj |
- detect-character-encoding Vendorsonicdoe Affected before 0.3.1 Fixed in 0.3.1 Patch available CNA
- detect-character-encoding (npm) Vendor— Affected before 0.3.1 Fixed in 0.3.1 Patch available GHSA-5rwj-j5m3-3chj
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:detect-character-encoding_project:detect-character-encoding:*:*:*:*:*:node.js:*:* | before 0.3.1 | Vulnerable | Detect-character-encoding Project |
- cpe:2.3:a:detect-character-encoding_project:detect-character-encoding:*:*:*:*:*:node.js:*:* Versions before 0.3.1 Vulnerable ·Detect-character-encoding Project
Remediation
- Fix · CNA detect-character-encoding (sonicdoe) Fixed in 0.3.1
- Fix · GHSA-5rwj-j5m3-3chj detect-character-encoding (npm) Fixed in 0.3.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-39176
- 2026-10-03 Alias added: GHSA-5rwj-j5m3-3chj
References
Exploit 1
Patch 2
Advisory 2
More Detect-character-encoding Project Detect-character-encoding vulnerabilities
- TI-2021-16543 Improper Handling of Exceptional Conditions in detect-character-encoding CVSS 3.1HIGH 7.5
Sources
- CVE-2021-39176 · CVE Program
- CVE-2021-39176 · NVD
- FIRST EPSS
- GHSA-5rwj-j5m3-3chj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences