CVE-2021-39176 json
Missing Release of Memory after Effective Lifetime in detect-character-encoding
published 2021-08-31 5 y ago modified 2026-07-08 4 mo ago also GHSA-5rwj-j5m3-3chj , EUVD-2021-1986
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
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.
Patch / fix
- npm detect-character-encoding 0.3.1
- detect-character-encoding_project detect-character-encoding 0.3.1
Exploit prediction
1.89% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | detect-character-encoding | <0.3.1 |
0.3.1 |
Affected products
- sonicdoe detect-character-encoding
Classification
- Weakness
-
- CWE-401 Missing Release of Memory after Effective Lifetime
References
-
github.com
/sonicdoe/detect-character-encoding/pull/6
web, issue-tracking, patch, third-party-advisory
-
github.com
/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588
web, patch, third-party-advisory
-
github.com
/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj
web, exploit, patch, third-party-advisory
-
github.com
/sonicdoe/detect-character-encoding/releases/tag/v0.3.1
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-39176
advisory
-
github.com
/sonicdoe/detect-character-encoding
package
Sources
- CVE List CVE-2021-39176
- GitHub Advisory GHSA-5rwj-j5m3-3chj
- NVD CVE-2021-39176
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.