Live threats

All CVEs / Detect-character-encoding Project

CVE-2021-39176Detect-character-encoding Project Detect-character-encoding

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Detect-character-encoding.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
detect-character-encoding_projectdetect-character-encoding< 0.3.1

Official sources

References

Links published by the sources. Open them with care.