{"answers":{"affected":"2 open source packages ship an affected version, including node-forge. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-66031 in the wild and no public exploit code.","fix":"Upgrade node-forge to 1.3.2 or later.","what":"CVE-2025-66031 is a high-severity denial of service vulnerability in digitalbazaar forge, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66031 and fix it if it is affected.\n\nWhat it is: CVE-2025-66031 is a high-severity denial of service vulnerability in digitalbazaar forge, published on 26 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-66031 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- node-forge (npm): affected all versions; fixed in 1.3.2\n- node-forge (npm): affected all versions; fixed in 1.3.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-66031/ (Markdown: https://insights.sbomify.com/CVE-2025-66031/index.md)","id":"CVE-2025-66031","markdown":"https://insights.sbomify.com/CVE-2025-66031/index.md","name":"CVE-2025-66031","record":{"aliases":["AZL-71134","CLEANSTART-2026-GS11212","CLEANSTART-2026-KB17672","DEBIAN-CVE-2025-66031","GHSA-554w-wpv2-vw27","MINI-2xx9-vpfh-7cr7","MINI-3f9f-gj6x-xx42","MINI-6gqj-28v8-77px","MINI-7m5w-jcw4-65g7","MINI-8xjc-674p-wm77","MINI-g369-9p2r-xg84","MINI-g43g-9mh3-fjmq","MINI-g4hc-rxvj-63pv","MINI-jqxj-wxrh-5g6w","MINI-m8w4-cwhg-vxhq","MINI-mrhw-vh2j-594c","MINI-pc3h-mxhr-q5vf","MINI-rm5g-qr59-9p3g","ROOT-APP-NPM-CVE-2025-66031","UBUNTU-CVE-2025-66031"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript TLS library","requires_auth":"none","summary":"Remote attackers can cause Denial of Service via stack exhaustion by crafting deep ASN.1 structures in node-forge.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"forge","vendor":"digitalbazaar"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"description":"Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. An Uncontrolled Recursion vulnerability in node-forge versions 1.3.1 and below enables remote, unauthenticated attackers to craft deep ASN.1 structures that trigger unbounded recursive parsing. This leads to a Denial-of-Service (DoS) via stack exhaustion when parsing untrusted DER inputs. This issue has been patched in version 1.3.2.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"node-forge ASN.1 Unbounded Recursion","id":"CVE-2025-66031","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"Claude Code Command Validation Bypass Allows Arbitrary Code Execution","id":"CVE-2025-66032"},"packages":[{"ecosystem":"npm","fixed":["1.3.2"],"introduced":["0"],"last_affected":[],"package":"node-forge","purl":null,"source":"GHSA-554w-wpv2-vw27"},{"ecosystem":"npm","fixed":["1.3.2"],"introduced":["0"],"last_affected":[],"package":"node-forge","purl":"pkg:npm/node-forge","source":"GHSA-554w-wpv2-vw27"}],"prev":{"headline":"node-forge ASN.1 OID Integer Truncation","id":"CVE-2025-66030"},"products":["forge"],"published":"2025-11-26","related":[{"cvss_score":9.8,"headline":"Prototype Pollution","id":"CVE-2020-7720","kev_date_added":null,"published":"2020-09-01"},{"cvss_score":8.6,"headline":"CVE-2025-12816","id":"CVE-2025-12816","kev_date_added":null,"published":"2025-11-25"},{"cvss_score":7.5,"headline":"Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero Input","id":"CVE-2026-33891","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":7.5,"headline":"Forge has signature forgery in RSA-PKCS due to ASN.1 extra field","id":"CVE-2026-33894","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":7.5,"headline":"Forge has signature forgery in Ed25519 due to missing S \u003e L check","id":"CVE-2026-33895","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":7.5,"headline":"Improper Verification of Cryptographic Signature in node-forge","id":"CVE-2022-24771","kev_date_added":null,"published":"2022-03-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-28","vendors":["digitalbazaar"]},"summary":"Remote attackers can cause Denial of Service via stack exhaustion by crafting deep ASN.1 structures in node-forge.","url":"https://insights.sbomify.com/CVE-2025-66031/"}