{"id":"CVE-2025-25283","published":"2025-02-12T18:21:48Z","modified":"2025-02-12T19:25:45Z","title":"parse-duraton vulnerable to Regex Denial of Service that results in event loop delay and out of memory","vendor":"jkroso","product":"parse-duration","tier":"tail","description":{"text":"parse-duraton is software that allows users to convert a human readable duration to milliseconds. Versions prior to 2.1.3 are vulnerable to an event loop delay due to the CPU-bound operation of resolving the provided string, from a 0.5ms and up to ~50ms per one operation, with a varying size from 0.01 MB and up to 4.3 MB respectively, and an out of memory that would crash a running Node.js application due to a string size of roughly 10 MB that utilizes unicode characters. Version 2.1.3 contains a patch.","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.00807,"percentile":0.57728,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/jkroso/parse-duration/security/advisories/GHSA-hcrg-fc28-fcg5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jkroso/parse-duration/commit/9e88421bfd41806fa4b473bfb28a9ee9dafc27d7","tags":["x_refsource_MISC"]},{"url":"https://github.com/jkroso/parse-duration/releases/tag/v2.1.3","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.55},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"jkroso","affectedVersions":[{"vendor":"jkroso","product":"parse-duration","versions":["< 2.1.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-12T19:25:33.773917Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"parse-duration","vulnerableRanges":["<2.1.3"],"patched":["2.1.3"],"from":["GHSA-hcrg-fc28-fcg5"],"provenance":"source"}],"summary":{"text":"The parse-duration package from jkroso, a library that converts human-readable durations to milliseconds, contains an inefficient regular expression in its parsing logic, and versions before 2.1.3 are affected. An attacker with network access and no authentication or user interaction can supply a crafted string, which causes CPU-bound processing that delays the Node.js event loop and, at roughly 10 MB of Unicode input, exhausts memory and crashes the running application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:49Z"},"euvd":{"id":"EUVD-2025-4098","exploited":false,"provenance":"source"}}