{"id":"GHSA-f523-2f5j-gfcg","summary":"Regular Expression Denial of Service in timespan","details":"Affected versions of `timespan` are vulnerable to a regular expression denial of service when parsing dates.\n\nThe amplification for this vulnerability is significant, with 50,000 characters resulting in the event loop being blocked for around 10 seconds.\n\n\n## Recommendation\n\nNo direct patch is available for this vulnerability.\n\nCurrently, the best available solution is to use a functionally equivalent alternative package.\n\nIt is also sufficient to ensure that user input is not being passed into `timespan`, or that the maximum length of such user input is drastically reduced. Limiting the input length to 150 characters should be sufficient in most cases.","aliases":["CVE-2017-16115"],"modified":"2023-11-08T03:59:05.707021Z","published":"2018-08-29T23:04:14Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:33:38Z","nvd_published_at":null,"cwe_ids":["CWE-400"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16115"},{"type":"WEB","url":"https://github.com/indexzero/TimeSpan.js/issues/10"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f523-2f5j-gfcg"},{"type":"WEB","url":"https://www.npmjs.com/advisories/533"}],"affected":[{"package":{"name":"timespan","ecosystem":"npm","purl":"pkg:npm/timespan"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.3.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-f523-2f5j-gfcg/GHSA-f523-2f5j-gfcg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}