Vulnerability · Published Aug 24, 2021 · Assigned by GitHub_M
CVE-2021-39157Improper Handling of Exceptional Conditions in detect-character-encoding
High 7.5
In plain English
A high-severity security flaw in detect-character-encoding from sonicdoe. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
detect-character-encoding is an open source character encoding inspection library. In detect-character-encoding v0.6.0 and earlier, data matching no charset causes the Node.js process to crash. The problem has been patched in [detect-character-encoding v0.7.0](https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.7.0). No workaround are available and all users should update to resolve this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | detect-character-encoding | 0.7.0 | GHSA-jqfh-8hw5-fqjr |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sonicdoe | detect-character-encoding | < 0.7.0 |
Weakness: CWE-755 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-jqfh-8hw5-fqjr x_refsource_CONFIRM
- https://github.com/sonicdoe/detect-character-encoding/issues/15 x_refsource_MISC
- https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a x_refsource_MISC