Vulnerability · Published Feb 12, 2025 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity regular-expression denial of service in parse-duration from jkroso. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.8%top 44.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmparse-duration2.1.3GHSA-hcrg-fc28-fcg5

Affected products (as reported)

VendorProductVersions
jkroso parse-duration < 2.1.3

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References