# CVE-2026-125333: Forge: ReDoS in forge.http response header and cookie trimming

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/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.56%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-10T18:48:26.003Z
- Modified: 2026-11-16T15:46:52.607Z
- Also known as: GHSA-6cv4-p8m7-4r25
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. From 0.1.2 until 1.4.3, forge.http uses _trimString() in lib/http.js to remove trailing whitespace from response header values and cookie names and values with a regular expression that can take quadratic time. A malicious server or on-path attacker can supply a long whitespace run followed by a non-whitespace character in a response header, causing response.readHeader() or response.getCookies() to repeatedly scan the input and block the Node.js event loop or browser tab for minutes. Applications are affected only when they use forge.http with a socket pool to communicate with an untrusted server; forge.http is not loaded by require('node-forge'), and the issue has no confidentiality or integrity impact. This issue is fixed in version 1.4.3.

(As written by CVE List.)

## Affected

- digitalbazaar forge: >= 0.1.2, < 1.4.3; from 0.1.2 before 1.4.3
- node-forge (npm): from 0.1.2 before 1.4.3

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-6cv4-p8m7-4r25> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/digitalbazaar/forge/pull/1169> (patch, web)
- <https://github.com/digitalbazaar/forge/commit/326a4d0903ee46358bc849a5c3fd96d9c21489bd> (patch, web)
- <https://github.com/digitalbazaar/forge/releases/tag/v1.4.3> (release-notes, web)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- CVE List: [CVE-2026-125333](https://www.cve.org/CVERecord?id=CVE-2026-125333), CVE Terms of Use, modified 2026-11-10
- GitHub Advisory Database: [GHSA-6cv4-p8m7-4r25](https://github.com/advisories/GHSA-6cv4-p8m7-4r25), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-125333](https://nvd.nist.gov/vuln/detail/CVE-2026-125333), Public domain, modified 2026-11-16

---

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