{"id":"CVE-2021-39157","published":"2021-08-24T18:15:11Z","modified":"2024-08-04T01:58:18Z","title":"Improper Handling of Exceptional Conditions in detect-character-encoding","vendor":"sonicdoe","product":"detect-character-encoding","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02068,"percentile":0.81873,"provenance":"source"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"}],"references":[{"url":"https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-jqfh-8hw5-fqjr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/issues/15","tags":["x_refsource_MISC"]},{"url":"https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a","tags":["x_refsource_MISC"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":16.37},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sonicdoe","affectedVersions":[{"vendor":"sonicdoe","product":"detect-character-encoding","versions":["< 0.7.0"]}],"affected":[{"ecosystem":"npm","package":"detect-character-encoding","vulnerableRanges":["<0.7.0"],"patched":["0.7.0"],"from":["GHSA-jqfh-8hw5-fqjr"],"provenance":"source"}],"summary":{"text":"The detect-character-encoding library, an open source character encoding inspection package for Node.js, contains a flaw in which input that matches no charset causes the Node.js process to crash. An attacker who can supply data to the library over the network can crash the process with no authentication, no user interaction and no special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:23Z"},"euvd":{"id":"EUVD-2021-1781","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sonicdoe-detect-character-encoding-cve-2021-39157","children":[{"from":"CVE-2021-39157","to":"CVE-2021-39176","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["icuWrapper.cpp"],"commits":["https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a","https://github.com/sonicdoe/detect-character-encoding/commit/d44356927b92e3b13e178071bf6d7c671766f588"],"basis":"shared function","functions":["NAN_METHOD"]}]}]}}