CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

CVE-2025-25283: parse-duraton vulnerable to Regex Denial of Service that results in event loop delay and out of memory

7.5 CVSS

Description

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.

Classification

CVE ID: CVE-2025-25283

CVSS Base Severity: HIGH

CVSS Base Score: 7.5

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected Products

Vendor: jkroso

Product: parse-duration

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 18.38% (scored less or equal to compared to others)

EPSS Date: 2025-03-13 (when was this score calculated)

References

https://github.com/jkroso/parse-duration/security/advisories/GHSA-hcrg-fc28-fcg5
https://github.com/jkroso/parse-duration/commit/9e88421bfd41806fa4b473bfb28a9ee9dafc27d7
https://github.com/jkroso/parse-duration/releases/tag/v2.1.3

Timeline