fix(deps): update dependency parse-duration to v2 [security] - autoclosed#478
Closed
renovate[bot] wants to merge 1 commit intomainfrom
Closed
fix(deps): update dependency parse-duration to v2 [security] - autoclosed#478renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
6d65916 to
d489b4f
Compare
d489b4f to
2733aed
Compare
2733aed to
b03778f
Compare
b03778f to
a53f602
Compare
a53f602 to
fb4902d
Compare
fb4902d to
a1df955
Compare
a1df955 to
e3ed9a3
Compare
e3ed9a3 to
30c9bf0
Compare
30c9bf0 to
c6c57ff
Compare
c6c57ff to
1fbcf86
Compare
1fbcf86 to
416fcd6
Compare
416fcd6 to
2bd3f73
Compare
2bd3f73 to
97e52b6
Compare
97e52b6 to
effaa53
Compare
effaa53 to
8d0950f
Compare
8d0950f to
2dca722
Compare
2dca722 to
0cc761f
Compare
0cc761f to
e5e2887
Compare
e5e2887 to
53e4866
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.2->2.1.3GitHub Vulnerability Alerts
CVE-2025-25283
Summary
This report finds 2 availability issues due to the regex used in the
parse-durationnpm 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
replacefunctions in theparse()function which create copies of the input in memory.Impact
Release Notes
jkroso/parse-duration (parse-duration)
v2.1.3Compare Source
What's Changed
Full Changelog: jkroso/parse-duration@v2.1.2...v2.1.3
v2.1.2Compare Source
What's Changed
mo,mth,microsec,nanosecbabbrμas greek mu in favor ofµleft in default setFull Changelog: jkroso/parse-duration@v2.1.1...v2.1.2
v2.1.1Compare Source
v2.1.0Compare Source
v2.0.2Compare Source
v2.0.1Compare Source
v2.0.0Compare Source
parse.unitobject #56Configuration
📅 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.