Skip to content

Update dependency moment to v2.31.0 [SECURITY] - abandoned - #3525

Open
renovate[bot] wants to merge 2 commits into
masterfrom
renovate/npm-moment-vulnerability
Open

renovate[bot] wants to merge 2 commits into
masterfrom
renovate/npm-moment-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
moment 2.29.4 → 2.31.0 age confidence

moment vulnerable to Path Traversal via crafted non-string locale name

CVE-2026-17495 / GHSA-4p3w-j4w9-5jqw

More information

Details

Impact

moment before 2.31.0 is vulnerable to path traversal in moment.locale(). When an application passes a non-string, attacker-influenced value to moment.locale(), a specially crafted object can bypass the locale name validation and cause moment to load a file from an attacker-controlled path. This is a further bypass of the validation added in 2.29.2 for CVE-2022-24785.

This affects server-side (npm) users only. Plain string input is not affected: the existing validation correctly rejects strings that contain path separators.

Patches

This issue is patched in moment 2.31.0.

Workarounds

Validate that any user-supplied input is a string before passing it to moment.locale().

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Configuration

📅 Schedule: (in timezone Europe/London)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • "before 12pm every weekday"

🚦 Automerge: Enabled.

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


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Oct 2, 2026
@renovate
renovate Bot enabled auto-merge (squash) October 2, 2026 08:37
@renovate
renovate Bot force-pushed the renovate/npm-moment-vulnerability branch from bac8fbf to f731cd1 Compare October 2, 2026 11:21
@renovate
renovate Bot force-pushed the renovate/npm-moment-vulnerability branch 2 times, most recently from 89c70a3 to a2ddfac Compare October 5, 2026 10:09
@renovate
renovate Bot force-pushed the renovate/npm-moment-vulnerability branch 2 times, most recently from 98acba1 to caf2d43 Compare October 6, 2026 12:45
@renovate
renovate Bot force-pushed the renovate/npm-moment-vulnerability branch 2 times, most recently from bc0b325 to e070b80 Compare October 6, 2026 18:27
@renovate

renovate Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@renovate renovate Bot changed the title Update dependency moment to v2.31.0 [SECURITY] Update dependency moment to v2.31.0 [SECURITY] - abandoned Oct 22, 2026
@renovate

renovate Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

This branch was successfully deployed

1 active deployment
preview — 812562ae Deployed Oct 8, 2026 by hmcts-jenkins-d-to-i[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ns:et prd:et rel:et-cos-pr-3525

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant