All CVEs / Detect-character-encoding Project
CVE-2021-39176Detect-character-encoding Project Detect-character-encoding
High 7.5 No auth needed
Follow: this CVE · Detect-character-encoding Project · Detect-character-encoding Project Detect-character-encoding We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Aug 31, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-401
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Detect-character-encoding.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | detect-character-encoding |
< 0.3.1 |
0.3.1 |
npm install detect-character-encoding@0.3.1 |
Per OSV / GitHub Advisories (GHSA-5rwj-j5m3-3chj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| detect-character-encoding_project | detect-character-encoding | < 0.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Exploit Patch Third Party Advisory