{
  "id": "CVE-2026-33891",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-33891",
  "published_at": "2026-03-27T20:43:37.725Z",
  "title": "Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero Input",
  "vendor": "digitalbazaar",
  "product": "forge",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.4.0, a Denial of Service (DoS) vulnerability exists in the node-forge library due to an infinite loop in the BigInteger.modInverse() function (inherited from the bundled jsbn library). When modInverse() is called with a zero value as input, the internal Extended Euclidean Algorithm enters an unreachable exit condition, causing the process to hang indefinitely and consume 100% CPU. Version 1.4.0 patches the issue.",
  "cwe": "CWE-835",
  "cpes": [
    "cpe:2.3:a:digitalbazaar:forge:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "digitalbazaar",
        "product": "forge",
        "ranges": [
          "\u003c 1.4.0"
        ],
        "fixed_in": [
          "1.4.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade forge to 1.4.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/digitalbazaar/forge/security/advisories/GHSA-5m6q-g25r-mvwx"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/digitalbazaar/forge/commit/9bb8d67b99d17e4ebb5fd7596cd699e11f25d023"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
