{"id":"CVE-2021-39157","details":"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.","aliases":["GHSA-jqfh-8hw5-fqjr"],"modified":"2026-07-09T10:52:04.669097Z","published":"2021-08-24T19:15:32.127Z","references":[{"type":"FIX","url":"https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a"},{"type":"EVIDENCE","url":"https://github.com/sonicdoe/detect-character-encoding/issues/15"},{"type":"EVIDENCE","url":"https://github.com/sonicdoe/detect-character-encoding/security/advisories/GHSA-jqfh-8hw5-fqjr"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sonicdoe/detect-character-encoding","events":[{"introduced":"0"},{"fixed":"57f2cf8decd4cc46c15d8d3daca413a006b9a006"},{"fixed":"992a11007fff6cfd40b952150ab8d30410c4a20a"}],"database_specific":{"cpe":"cpe:2.3:a:detect-character-encoding_project:detect-character-encoding:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"0.7.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v0.6.0","v0.5.1","v0.5.0","v0.4.0","v0.3.1","v0.3.0","v0.2.1","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-39157.json","vanir_signatures_modified":"2026-07-09T10:52:04Z","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/sonicdoe/detect-character-encoding/commit/992a11007fff6cfd40b952150ab8d30410c4a20a","target":{"file":"icuWrapper.cpp","function":"NAN_METHOD"},"deprecated":false,"digest":{"function_hash":"244521284125772824062875955107530677307","length":1396},"id":"CVE-2021-39157-871caf3a"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}