# Moment.js vulnerable to Inefficient Regular Expression Complexity

Advisory record · `GHSA-wc69-rhjr-hc9g`

- **Identifiers:** `GHSA-wc69-rhjr-hc9g` · `CVE-2022-31129`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html) · [CWE-1333](https://cwe.mitre.org/data/definitions/1333.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 6 Jul 2022
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Jul 2022, 18:38 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `moment` (npm): affected `>=2.18.0, <2.29.4`; fixed in `2.29.4`
- `Moment.js` (NuGet): affected `>=2.18.0, <2.29.4`; fixed in `2.29.4`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.056, the 93rd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 6 Jul 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-wc69-rhjr-hc9g](https://github.com/advisories/GHSA-wc69-rhjr-hc9g)
- [OSV: GHSA-wc69-rhjr-hc9g](https://osv.dev/vulnerability/GHSA-wc69-rhjr-hc9g)
- <https://github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31129>
- <https://github.com/moment/moment/pull/6015#issuecomment-1152961973>
- <https://github.com/moment/moment/pull/6015/commits/4bbb9f3ccbe231de40207503f344fe5ce97584f4>
- <https://github.com/moment/moment/pull/6015/commits/bfd4f2375d5c1a2106246721d693a9611dddfbfe>
- <https://github.com/moment/moment/pull/6015/commits/dc0d180e90d8a84f7ff13572363330a22b3ea504>
- <https://github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3>
- <https://security.netapp.com/advisory/ntap-20241108-0002>
- <https://security.netapp.com/advisory/ntap-20221014-0003>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZMX5YHELQVCGKKQVFXIYOTBMN23YYSRO>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IWY24RJA3SBJGA5N4CU4VBPHJPPPJL5O>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-wc69-rhjr-hc9g>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-wc69-rhjr-hc9g/>. Everything for agents: <https://agentprime.io/llms.txt>.
