---
title: "moment 2.31.0: release notes, upgrades and advisories"
description: "moment 2.31.0: release notes, breaking changes by major version and 5 known advisories with their fix."
url: https://inlinr.com/packages/moment
lang: en
---

[Packages](https://inlinr.com/packages)

# moment

2.31.0 · 15 Sep 2026 MIT 52.4M / week [Homepage](https://momentjs.com/) [npm](https://www.npmjs.com/package/moment) [Atom feed](https://inlinr.com/packages/feed/moment)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/moment/upgrade)

LineNewestSecurity

- 2.x 2.31.0 Safe from 2.31.0 Latest line
- 1.x 1.7.2 3 open advisories, worst high  · last release Oct 2012, no longer updated [To 2.31.0](https://inlinr.com/packages/moment/upgrade/1.7.2-2.31.0)

## What to use instead

## A better maintained package

From the [e18e module-replacements](https://github.com/es-tooling/module-replacements) list, maintained by the community.

The list compares the options for moment: [read the comparison](https://github.com/es-tooling/module-replacements/blob/main/docs/modules/moment.md).

## Before you switch

1. 1  
Check what else depends on it  
Paste your package.json in the [dependency check](https://inlinr.com/tools/dependency-check) to see every deprecated or outdated package in one pass, not only this one.
2. 2  
Read the replacement's peers and releases  
A native API or a few lines of code need no release notes, but check the Node version your project runs on.
3. 3  
Know when it ships  
Follow the new package on inlinr: its releases and advisories land in your feed, and the time spent on the migration branch shows on its page.

## Latest releases

[All 80 releases](https://inlinr.com/packages/moment/releases)

1. 2.22.0 – 2.31.0 20 releases without a note Show each
  - [2.31.0](https://inlinr.com/packages/moment/releases/2.31.0 "Open this release") 15 Sep 2026 no note
  - [2.30.1](https://inlinr.com/packages/moment/releases/2.30.1 "Open this release") 27 Dec 2023 no note
  - [2.30.0](https://inlinr.com/packages/moment/releases/2.30.0 "Open this release") 26 Dec 2023 no note
  - [2.29.4](https://inlinr.com/packages/moment/releases/2.29.4 "Open this release") 6 Jul 2022 no note
  - [2.29.3](https://inlinr.com/packages/moment/releases/2.29.3 "Open this release") 17 Apr 2022 no note
  - [2.29.2](https://inlinr.com/packages/moment/releases/2.29.2 "Open this release") 3 Apr 2022 no note
  - [2.29.1](https://inlinr.com/packages/moment/releases/2.29.1 "Open this release") 6 Oct 2020 no note
  - [2.29.0](https://inlinr.com/packages/moment/releases/2.29.0 "Open this release") 22 Sep 2020 no note
  - [2.28.0](https://inlinr.com/packages/moment/releases/2.28.0 "Open this release") 13 Sep 2020 no note
  - [2.27.0](https://inlinr.com/packages/moment/releases/2.27.0 "Open this release") 18 Jun 2020 no note
  - [2.26.0](https://inlinr.com/packages/moment/releases/2.26.0 "Open this release") 20 May 2020 no note
  - [2.25.3](https://inlinr.com/packages/moment/releases/2.25.3 "Open this release") 4 May 2020 no note
  - [2.25.2](https://inlinr.com/packages/moment/releases/2.25.2 "Open this release") 4 May 2020 no note
  - [2.25.1](https://inlinr.com/packages/moment/releases/2.25.1 "Open this release") 1 May 2020 no note
  - [2.25.0](https://inlinr.com/packages/moment/releases/2.25.0 "Open this release") 1 May 2020 no note
  - [2.24.0](https://inlinr.com/packages/moment/releases/2.24.0 "Open this release") 21 Jan 2019 no note
  - [2.23.0](https://inlinr.com/packages/moment/releases/2.23.0 "Open this release") 13 Dec 2018 no note
  - [2.22.2](https://inlinr.com/packages/moment/releases/2.22.2 "Open this release") 1 Jun 2018 no note
  - [2.22.1](https://inlinr.com/packages/moment/releases/2.22.1 "Open this release") 15 Apr 2018 no note
  - [2.22.0](https://inlinr.com/packages/moment/releases/2.22.0 "Open this release") 30 Mar 2018 no note

Dependency tracking

## Know when your own dependencies move

moment had 1 security advisory in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[All 5](https://inlinr.com/packages/moment/security)

- [Moment.js vulnerable to Inefficient Regular Expression Complexity](https://inlinr.com/advisories/GHSA-wc69-rhjr-hc9g) High · fixed in 2.29.4
- [Path Traversal: 'dir/../../filename' in moment.locale](https://inlinr.com/advisories/GHSA-8hfj-j24r-96c4) High · fixed in 2.29.2
- [Regular Expression Denial of Service in moment](https://inlinr.com/advisories/GHSA-446m-mv8f-q348) High · fixed in 2.19.3

## Health

[Details](https://inlinr.com/packages/moment/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

Reading releases, release notes and advisories…

Registry facts last checked 18 Nov 2026\. Releases and advisories last read 20 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
