Skip to main content
← All vulnerabilities
CVE-2025-25283GHSA-HCRG-FC28-FCG5

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jkroso parse-duration

    fixed in 2.1.3

  • parse-durationnpm

    fixed in 2.1.3

References 3

GitHub · jkroso/parse-duration