Approved changes feed: RSS · Atom

cpe:2.3:a:momentjs:moment:*:*:*:*:*:node.js:*:*

part: a version: * update: *

VendorMomentjs (8b0a4ef5-516c-525c-b8fc-6e3aa09f7582)
ProductMoment (798632b7-f538-5edf-9a5a-2b1b08bd7cf1)
Edition*
Language*
Software edition*
Target softwarenode.js
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:deb/debian/node-moment purl2cpe 2026-06-01 10:14:56.917757
pkg:deb/ubuntu/node-moment purl2cpe 2026-06-01 10:14:56.917759
pkg:github/moment/moment purl2cpe 2026-06-01 10:14:56.917761
pkg:maven/org.webjars.npm/moment purl2cpe 2026-06-01 10:14:56.917762
pkg:npm/moment purl2cpe 2026-06-01 10:14:56.917763
pkg:nuget/Moment.js purl2cpe 2026-06-01 10:14:56.917765

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2022-31129 vulnerable 2026-06-08 05:43:40.254438 Inefficient Regular Expression Complexity in moment
HIGH (7.5)
moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates. Affected versions of moment were found to use an inefficient parsing algorithm. Specifically using string-to-date parsing in moment (more specifically rfc2822 parsing, which is tried by default) has quadratic (N^2) complexity on specific inputs. Users may notice a noticeable slowdown is observed with inputs above 10k characters. Users who pass user-provided strings without sanity length checks to moment constructor are vulnerable to (Re)DoS attacks. The problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. Users are advised to upgrade. Users unable to upgrade should consider limiting date lengths accepted from user input.
Published: 2022-07-06T00:00:00.000Z
Updated: 2025-11-03T21:46:17.025Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2022-24785 vulnerable 2026-06-08 05:41:01.629842 Path Traversal in Moment.js
HIGH (7.5)
Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.
Published: 2022-04-04T00:00:00.000Z
Updated: 2025-11-03T21:46:06.689Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2017-18214 vulnerable 2026-06-08 05:09:10.595012 Details available
The moment module before 2.19.3 for Node.js is prone to a regular expression denial of service via a crafted date string, a different vulnerability than CVE-2016-4055.
Published: 2018-03-04T21:00:00.000Z
Updated: 2024-08-05T21:13:49.174Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2016-4055 vulnerable 2026-06-08 05:07:46.597204 Details available
The duration function in the moment package before 2.11.2 for Node.js allows remote attackers to cause a denial of service (CPU consumption) via a long string, aka a "regular expression Denial of Service (ReDoS)."
Published: 2017-01-23T21:00:00.000Z
Updated: 2024-08-06T00:17:30.673Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.