# CVE-2026-118779: Forge: Regular expression denial of service in PEM decoding (pem.decode)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-29T18:45:55.093Z
- Modified: 2026-11-10T19:34:17.470Z
- Also known as: GHSA-7wch-p9px-956x
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- digitalbazaar forge: < 1.4.1; before 1.4.1
- node-forge (npm): before 1.4.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-7wch-p9px-956x> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/digitalbazaar/forge/commit/412345db583cd28a9d23636d0d93e9f751b935f3> (patch, web)
- <https://github.com/digitalbazaar/forge/releases/tag/v1.4.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-118779> (advisory)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- CVE List: [CVE-2026-118779](https://www.cve.org/CVERecord?id=CVE-2026-118779), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-7wch-p9px-956x](https://github.com/advisories/GHSA-7wch-p9px-956x), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-118779](https://nvd.nist.gov/vuln/detail/CVE-2026-118779), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-118779 · Whole record: https://cve.day/CVE-2026-118779.json · Rebuilt by cve.day 2026-11-25T22:59:47.822Z
