{"cve":"CVE-2021-39157","nvd":{"published":"2021-08-24T19:15:32.127","modified":"2026-06-17T04:03:12.860","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-755"],"references":["https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a","https://github.com/sonicdoe/detect-character-encoding/issues/15","https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-jqfh-8hw5-fqjr","https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a","https://github.com/sonicdoe/detect-character-encoding/issues/15"],"products":["detect-character-encoding_project:detect-character-encoding"],"source":"nvd","synced_at":"2026-10-19T21:21:57.125947417+00:00"},"epss":{"cve":"CVE-2021-39157","score":0.02068,"percentile":0.81406,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jqfh-8hw5-fqjr","url":"https://osv.dev/vulnerability/GHSA-jqfh-8hw5-fqjr","summary":"Improper Handling of Exceptional Conditions in detect-character-encoding","modified":"2026-07-08T06:29:33.959441802Z","packages":[{"ecosystem":"npm","name":"detect-character-encoding","purl":"pkg:npm/detect-character-encoding","ranges":["<0.7.0"],"fixed":["0.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}