{"id":"CVE-2026-118779","state":"PUBLISHED","title":"Forge: Regular expression denial of service in PEM decoding (pem.decode)","description":"Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used pem.decode(), lib/pem.js, missing END line to process the relevant input or security decision. node-forge used polynomial-time regular expressions in pem.decode(), including when searching for a matching END line and parsing encapsulated headers. An unauthenticated attacker able to supply PEM input to any high-level parser could consume excessive CPU with a long malformed message and cause denial of service. This issue is fixed in version 1.4.1.","publishedAt":"2026-10-29T18:45:55.093Z","updatedAt":"2026-10-29T20:23:11.602Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["digitalbazaar forge"],"affected":[{"vendor":"digitalbazaar","product":"forge","versions":[{"version":"< 1.4.1","status":"affected"}]}],"references":["https://github.com/digitalbazaar/forge/security/advisories/GHSA-7wch-p9px-956x","https://github.com/digitalbazaar/forge/commit/412345db583cd28a9d23636d0d93e9f751b935f3","https://github.com/digitalbazaar/forge/releases/tag/v1.4.1"],"weaknesses":["CWE-400","CWE-1333"],"ingestedAt":"2026-10-29T23:08:31.977Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/118xxx/CVE-2026-118779.json","commit":"dc7676b3f67d6707e4927968546e7e0125ff7ec7","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118779","state":"PUBLISHED","datePublished":"2026-10-29T18:45:55.093Z","dateUpdated":"2026-10-29T20:23:11.602Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-28T19:20:05.018Z"},"containers":{"cna":{"title":"Forge: Regular expression denial of service in PEM decoding (pem.decode)","descriptions":[{"lang":"en","value":"Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used pem.decode(), lib/pem.js, missing END line to process the relevant input or security decision. node-forge used polynomial-time regular expressions in pem.decode(), including when searching for a matching END line and parsing encapsulated headers. An unauthenticated attacker able to supply PEM input to any high-level parser could consume excessive CPU with a long malformed message and cause denial of service. This issue is fixed in version 1.4.1."}],"affected":[{"vendor":"digitalbazaar","product":"forge","versions":[{"version":"< 1.4.1","status":"affected"}]}],"references":[{"url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-7wch-p9px-956x","name":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-7wch-p9px-956x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/digitalbazaar/forge/commit/412345db583cd28a9d23636d0d93e9f751b935f3","name":"https://github.com/digitalbazaar/forge/commit/412345db583cd28a9d23636d0d93e9f751b935f3","tags":["x_refsource_MISC"]},{"url":"https://github.com/digitalbazaar/forge/releases/tag/v1.4.1","name":"https://github.com/digitalbazaar/forge/releases/tag/v1.4.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-1333","lang":"en","description":"CWE-1333: Inefficient Regular Expression Complexity","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-29T18:45:55.093Z"},"source":{"advisory":"GHSA-7wch-p9px-956x","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/digitalbazaar/forge/security/advisories/GHSA-7wch-p9px-956x","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-29T20:22:46.362205Z","id":"CVE-2026-118779","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-29T20:23:11.602Z"}}]}}}