Moment.js vulnerabilities

A lightweight JavaScript date library for parsing, manipulating, and formatting dates.

Registry
NuGet
Latest
2.30.1

2 known advisories

The latest version, 2.30.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:dotnet add package Moment.js --version 2.30.1

Is your project on an affected Moment.js?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for Moment.js

  • HighCVE-2022-31129GHSA-wc69-rhjr-hc9g6 Jul 2022

    Moment.js vulnerable to Inefficient Regular Expression Complexity

    Affected
    >=2.18.0 <2.29.4
    Fixed in
    2.29.4
  • HighCVE-2022-24785GHSA-8hfj-j24r-96c44 Apr 2022

    Path Traversal: 'dir/../../filename' in moment.locale

    Affected
    <2.29.2
    Fixed in
    2.29.2

Is your Moment.js version vulnerable?

Which of your client projects still run an old Moment.js?

NPMscan reads the packages.lock.json and .csproj files in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other NuGet packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the NuGet registry.