{"id":"GHSA-v2p6-4mp7-3r9v","aliases":["GHSA-v2p6-4mp7-3r9v"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service in underscore.string","summary":"Versions of `underscore.string` prior to *3.3.5* are vulnerable to Regular Expression Denial of Service (ReDoS).\n\nThe function `unescapeHTML` is vulnerable to ReDoS due to an overly-broad regex. The slowdown is approximately 2s for 50,000 characters but grows exponentially with larger inputs.\n\n\n## Recommendation\n\nUpgrade to version 3.3.5 or higher.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `underscore.string` prior to *3.3.5* are vulnerable to Regular Expression Denial of Service (ReDoS).\n\nThe function `unescapeHTML` is vulnerable to ReDoS due to an overly-broad regex. The slowdown is approximately 2s for 50,000 characters but grows exponentially with larger inputs.\n\n\n## Recommendation\n\nUpgrade to version 3.3.5 or higher.","format":"markdown","source":"ghsa"}],"published":"2019-06-14T16:26:22.000Z","modified":"2020-08-31T18:34:16.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.5"}],"ecosystem":"npm","package":"underscore.string","purl":"pkg:npm/underscore.string","source":"ghsa"}],"references":[{"url":"https://github.com/epeli/underscore.string/issues/510","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/epeli/underscore.string/pull/517","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/epeli/underscore.string/commit/f486cd684c94c12db48b45d52b1472a1b9661029","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/745","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v2p6-4mp7-3r9v","url":"https://github.com/advisories/GHSA-v2p6-4mp7-3r9v","licence":"CC-BY-4.0","modified":"2020-08-31T18:34:16.000Z"}],"updatedAt":"2026-11-25T22:56:46.551Z"}