{
  "cveId": "CVE-2022-31129",
  "url": "https://patchblox.com/security/cve/CVE-2022-31129",
  "summary": "CVE-2022-31129 is fixed in 3 products on 1 platform, first by libjs-moment 2.20.1\u002Bds-1ubuntu0.1, released July 6, 2022. It is not reported as exploited. Patch Radar priority: High.",
  "title": "libjs-moment: moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates",
  "description": "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-06T11:15:00Z",
  "severity": "Medium",
  "cvss": 7.5,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.05551,
  "epssPercentile": 0.92893,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "libjs-moment",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.20.1\u002Bds-1ubuntu0.1",
      "fix": "libjs-moment 2.20.1\u002Bds-1ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-libjs-moment-2.20.1-ds-1ubuntu0.1",
      "released": "2022-07-06T11:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libjs-moment",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "2.24.0\u002Bds-2ubuntu0.1",
      "fix": "libjs-moment 2.24.0\u002Bds-2ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-libjs-moment-2.24.0-ds-2ubuntu0.1",
      "released": "2022-07-06T11:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libjs-moment",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.29.1\u002Bds-3ubuntu0.2",
      "fix": "libjs-moment 2.29.1\u002Bds-3ubuntu0.2",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libjs-moment-2.29.1-ds-3ubuntu0.2",
      "released": "2022-07-06T11:15:00Z"
    },
    {
      "platform": "linux",
      "product": "node-moment",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "2.29.4\u002Bds-1",
      "fix": "DEBIAN-CVE-2022-31129",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-31129",
      "released": "2022-07-06T18:15:19Z"
    },
    {
      "platform": "linux",
      "product": "node-moment",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "2.29.4\u002Bds-1",
      "fix": "DEBIAN-CVE-2022-31129",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-31129",
      "released": "2022-07-06T18:15:19Z"
    },
    {
      "platform": "linux",
      "product": "node-moment",
      "release": "Debian 14",
      "fixedVersion": "2.29.4\u002Bds-1",
      "fix": "DEBIAN-CVE-2022-31129",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-31129",
      "released": "2022-07-06T18:15:19Z"
    },
    {
      "platform": "linux",
      "product": "node-moment",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.20.1\u002Bds-1ubuntu0.1",
      "fix": "node-moment 2.20.1\u002Bds-1ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-node-moment-2.20.1-ds-1ubuntu0.1",
      "released": "2022-07-06T11:15:00Z"
    },
    {
      "platform": "linux",
      "product": "node-moment",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "2.24.0\u002Bds-2ubuntu0.1",
      "fix": "node-moment 2.24.0\u002Bds-2ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-node-moment-2.24.0-ds-2ubuntu0.1",
      "released": "2022-07-06T11:15:00Z"
    },
    {
      "platform": "linux",
      "product": "node-moment",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.29.1\u002Bds-3ubuntu0.2",
      "fix": "node-moment 2.29.1\u002Bds-3ubuntu0.2",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-node-moment-2.29.1-ds-3ubuntu0.2",
      "released": "2022-07-06T11:15:00Z"
    },
    {
      "platform": "linux",
      "product": "postfixadmin",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "3.3.10-2ubuntu0.1~esm1",
      "fix": "postfixadmin 3.3.10-2ubuntu0.1~esm1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-postfixadmin-3.3.10-2ubuntu0.1-esm1",
      "released": "2023-03-28T14:15:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}