Skip to content

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

HighCVSS 7.5 EPSS 0.81%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm parse-duration(npm) < 2.1.3 2.1.3 Fixed
jkroso parse-duration = < 2.1.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm parse-duration(npm) < 2.1.3 2.1.3
jkroso parse-duration = < 2.1.3 No fix listed

References