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.
Severity (CVSS)
| Base score | 5.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-1333 — CWE-1333: Inefficient Regular Expression Complexity
Affected products
| Vendor | Product | Versions |
|---|---|---|
| digitalbazaar | forge | >= 0.1.2, < 1.4.3 [affected] |
References
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-6cv4-p8m7-4r25 (x_refsource_CONFIRM)
- https://github.com/digitalbazaar/forge/pull/1169 (x_refsource_MISC)
- https://github.com/digitalbazaar/forge/commit/326a4d0903ee46358bc849a5c3fd96d9c21489bd (x_refsource_MISC)
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.3 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 11 Nov 2026 08:04 UTC.