CVE-2025-25283

Source
https://cve.org/CVERecord?id=CVE-2025-25283
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-25283.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-25283
Aliases
Published
2025-02-12T18:21:48.693Z
Modified
2025-12-02T08:04:40.743431Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
parse-duraton vulnerable to Regex Denial of Service that results in event loop delay and out of memory
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25283.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-1333"
    ]
}
References

Affected packages

Git / github.com/jkroso/parse-duration

Affected ranges

Type
GIT
Repo
https://github.com/jkroso/parse-duration
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*
0.1.0
0.1.1
0.3.0
0.4.0
v0.*
v0.1.2
v0.1.3
v0.2.0
v0.2.1
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.4.0
v1.*
v1.0.3
v1.1.0
v1.1.1
v1.1.2
v2.*
v2.0.0
v2.0.1
v2.0.2
v2.1.0
v2.1.1
v2.1.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-25283.json"