Opened 4 weeks ago
Closed 4 weeks ago
#66311 closed enhancement (fixed)
Bundled moment.js should be updated to 2.31.0
| Reported by: | jayt101 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | External Libraries | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
WordPress core bundles moment.js 2.30.1 (as of WP 7.1.2, 7.1.3, and trunk) at wp-includes/js/dist/vendor/moment.js and moment.min.js, registered in wp-includes/script-loader.php ('moment' => '2.30.1').
The latest upstream release is 2.31.0 (Sep 15, 2026) — a drop-in patch release. The bundled copy is out of date and dependency scanners (RetireJS, OWASP dependency-check) flag it on every scan of WP installs, generating recurring audit findings for enterprise deployments.
Request
Refresh the bundled moment.js to 2.31.0 in trunk — both wp-includes/js/dist/vendor/moment.js and moment.min.js, plus the version string in wp-includes/script-loader.php.
Reference: https://github.com/moment/moment/releases (2.31.0)
Change History (3)
This ticket was mentioned in PR #14282 on WordPress/wordpress-develop by @iamchitti.
4 weeks ago
#1
- Keywords has-patch added; needs-refresh removed
Updates moment from 2.30.1 to 2.31.0. This fixes CVE-2026-17495. The release notes list no breaking changes.
Screenshots
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code (Claude Opus 5.5)
Used for: Version update.