CVE-2026-125333
Medium 5.9No known exploitationFix availableForge: ReDoS in forge.http response header and cookie trimming
Vendor advisory: GHSA-6cv4-p8m7-4r25
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 47% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-1333
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl4 grafana 10.2.6-25.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| Microsoft | azl4 js-d3-flame-graph 4.0.7-14.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| digitalbazaar | forge | from 0.1.2 before 1.4.3 | 1.4.3 | NIST NVD |
| npm | node-forge | from 0.1.2 up to and including 1.4.2 | 1.4.3 | GitHub Advisory Database |
Timeline
Advisory
Microsoft advisory published
Advisory change
Microsoft advisory revised (2.0): Information published.
Advisory change
Microsoft advisory revised (3.0): Information published.
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- https://github.com/digitalbazaar/forge/commit/326a4d0903ee46358bc849a5c3fd96d9c21489bd (opens in a new tab)patch
- https://github.com/digitalbazaar/forge/pull/1169 (opens in a new tab)patch
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- GitHub Advisory GHSA-6cv4-p8m7-4r25 (opens in a new tab)github-advisory
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.3 (opens in a new tab)release notes