CVE-2021-39176
HIGH 7.5CVSS 3.1Missing Release of Memory after Effective Lifetime in detect-character-encoding
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.
- Published
- 31 Aug 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-401
- Also known as
- GHSA-5rwj-j5m3-3chj
- Sources
- NVDJSONOSV GHSA-5rwj-j5m3-3chjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | detect-character-encoding_project | detect-character-encodingcpe:2.3:a:detect-character-encoding_project:detect-character-encoding:*:*:*:*:*:node.js:*:* |
< 0.3.1 | 0.3.1 |
| OSV | npm | detect-character-encoding | < 0.3.1 | 0.3.1 |
References
- https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588 · Patch, Third Party Advisory, WEB
- https://github.com/sonicdoe/detect-character-encoding/pull/6 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.3.1 · Third Party Advisory, WEB
- https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-5rwj-j5m3-3chj · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-39176 · ADVISORY
- https://github.com/sonicdoe/detect-character-encoding · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 31 Aug 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 1 Sep 2021)