{"id":"CVE-2017-16115","aliases":["CLSA-2026-1777336758","CLSA-2026-1786539981","CLSA-2026-1793867539","EUVD-2018-0395","GHSA-f523-2f5j-gfcg"],"status":"published","title":"Regular Expression Denial of Service in timespan","description":"The timespan module is vulnerable to regular expression denial of service. Given 50k characters of untrusted user input it will block the event loop for around 10 seconds.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01479,"percentile":0.74076,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2018-06-07T02:00:00Z","modified":"2026-11-05T13:15:15Z","fixes":[{"ecosystem":"TuxCare:npm","package":"timespan","fixed_in":["2.3.0-tuxcare.1","2.3.0-tuxcare.2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"timespan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.3.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"timespan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0-tuxcare.0"},{"fixed":"2.3.0-tuxcare.1"}]}],"versions":["2.3.0"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"timespan","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.0-tuxcare.0"},{"fixed":"2.3.0-tuxcare.2"}]}],"versions":["2.3.0","2.3.0-tuxcare.1"]},{"source":"osv","ecosystem":"npm","package":"timespan","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.3.0"}]}]}],"products":[{"vendor":"hackerone","product":"timespan node module"},{"vendor":"timespan_project","product":"timespan"}],"references":[{"url":"https://github.com/indexzero/TimeSpan.js/issues/10","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","web"]},{"url":"https://nodesecurity.io/advisories/533","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16115","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-f523-2f5j-gfcg","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/533","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16115","description":"The timespan module is vulnerable to regular expression denial of service. Given 50k characters of untrusted user input it will block the event loop for around 10 seconds.","status":"published","published":"2018-06-07T02:00:00Z","modified":"2024-09-17T01:12:20.165Z","cwes":["CWE-400"],"updated_at":"2026-11-02T14:33:21.453505Z"}],"euvd":[{"id":"EUVD-2018-0395","description":"The timespan module is vulnerable to regular expression denial of service. Given 50k characters of untrusted user input it will block the event loop for around 10 seconds.","status":"published","published":"2018-06-07T02:00:00Z","modified":"2024-09-17T01:12:20Z","updated_at":"2026-11-03T00:28:51.722495Z"}],"ghsa":[{"id":"GHSA-f523-2f5j-gfcg","title":"Regular Expression Denial of Service in timespan","description":"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.","status":"published","published":"2018-08-29T23:04:14Z","modified":"2023-09-13T19:38:20Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:37:05.004935Z"}],"nvd":[{"id":"CVE-2017-16115","description":"The timespan module is vulnerable to regular expression denial of service. Given 50k characters of untrusted user input it will block the event loop for around 10 seconds.","status":"published","published":"2018-06-07T02:29:02.817Z","modified":"2026-06-17T01:08:49.37Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:04:17.638656Z"}],"osv":[{"id":"GHSA-f523-2f5j-gfcg","title":"Regular Expression Denial of Service in timespan","description":"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.","status":"published","published":"2018-08-29T23:04:14Z","modified":"2023-11-08T03:59:05.707021Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:46.006631Z"},{"id":"CLSA-2026-1777336758","title":"TuxCare security update for timespan (1 CVE)","description":"TuxCare rebuilt timespan to address 1 CVE. Fixed in 2.3.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:29Z","modified":"2026-10-15T09:45:50.179964904Z","updated_at":"2026-11-02T15:43:44.384419Z"},{"id":"CLSA-2026-1786539981","title":"TuxCare security update for dompurify (10 CVEs)","description":"TuxCare rebuilt dompurify to address 10 CVEs. Fixed in 2.3.0-tuxcare.1.","status":"withdrawn","published":"2026-08-12T13:06:21Z","modified":"2026-10-26T13:21:31Z","updated_at":"2026-11-02T15:43:46.850893Z"},{"id":"CLSA-2026-1793867539","title":"TuxCare security update for timespan (1 CVE)","description":"TuxCare rebuilt timespan to address 1 CVE. Fixed in 2.3.0-tuxcare.2.","status":"published","published":"2026-11-05T09:32:20Z","modified":"2026-11-05T13:15:15.371174643Z","updated_at":"2026-11-05T13:30:00.949926Z"}]}}
