CVE-2025-25283 Details
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.
A denial-of-service vulnerability has been identified in the parse-duration npm package, affecting versions prior to 2.1.3. The issue arises from a regular expression in the duration parsing function, which can lead to significant event loop delays and memory exhaustion. When processing strings of varying lengths and compositions, the library can introduce delays of up to 50 milliseconds per operation. Furthermore, strings approximately 10 megabytes in size, particularly those with Unicode characters, can cause a Node.js application to crash by exceeding the JavaScript heap limit.
Users can upgrade to parse-duration version 2.1.3 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 12, 2025CISA-ADP
Assessed Feb 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jkroso/parse-duration/commit/9e88421bfd41806fa4b473bfb28a9ee9dafc27d7 | [email protected] | Source CodeVendor |
| https://github.com/jkroso/parse-duration/releases/tag/v2.1.3 | [email protected] | Release NotesVendor |
| https://github.com/jkroso/parse-duration/security/advisories/GHSA-hcrg-fc28-fcg5 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jkroso parse-duration | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 12, 2025 | New CVE Received | [email protected] |
Volerion