chore(deps): update dependency parse-duration to v2 [security] #1108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.1.0
->2.1.3
GitHub Vulnerability Alerts
CVE-2025-25283
Summary
This report finds 2 availability issues due to the regex used in the
parse-duration
npm package:PoC
Refer to the following proof of concept code that provides a test case and makes use of the regular expression in the library as its test case to match against strings:
The results of this on the cloud machine that I ran this on are as follows:
You can note that:
parse()
functionHowever, more interestingly, if we focus on the input string case:
Even though this is merely 10 MB of size (9.97 MB) it results in an out of memory issue due to the recursive nature of the regular expression matching:
To note, the issue at hand may not just be the primary regex in use but rather the reliance of the various
replace
functions in theparse()
function which create copies of the input in memory.Impact
Release Notes
jkroso/parse-duration (parse-duration)
v2.1.3
Compare Source
What's Changed
Full Changelog: jkroso/parse-duration@v2.1.2...v2.1.3
v2.1.2
Compare Source
What's Changed
mo
,mth
,microsec
,nanosec
b
abbrμ
as greek mu in favor ofµ
left in default setFull Changelog: jkroso/parse-duration@v2.1.1...v2.1.2
v2.1.1
Compare Source
v2.1.0
Compare Source
v2.0.2
Compare Source
v2.0.1
Compare Source
v2.0.0
Compare Source
parse.unit
object #56v1.1.2
Compare Source
What's Changed
null
instead ofundefined
by @Mykhailo-Sichkaruk in https://github.com/jkroso/parse-duration/pull/53New Contributors
Full Changelog: jkroso/parse-duration@v0.4.0...v1.1.2
v1.1.1
Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.