Make WordPress Core

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

https://github.com/user-attachments/assets/16d31765-9967-4d17-ab09-8e5dc0f86bb8

https://github.com/user-attachments/assets/f8847efb-6c93-400c-8ffc-885ecda8d419

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code (Claude Opus 5.5)
Used for: Version update.

#2 @SergeyBiryukov
4 weeks ago

  • Keywords moment removed
  • Milestone Awaiting Review → 7.2

#3 @SergeyBiryukov
4 weeks ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 64349:

External Libraries: Update the Moment library to version 2.31.0.

The latest release includes a security fix and a few bug fixes.

References:

Developed in ​https://github.com/WordPress/wordpress-develop/pull/14282.

Follow-up to r44271, r48075, r50773, r53163, r53662, r53725, r59129.

Props iamchitti, jayt101.
Fixes #66311.

Note: See TracTickets for help on using tickets.