CVE-2026-125333

Forge: ReDoS in forge.http response header and cookie trimming

Published Nov 10, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Forge, a native Transport Layer Security library for JavaScript, contains a regular expression in _trimString() that removes trailing whitespace from response header values and cookie names. The regex can require quadratic time, meaning that a crafted header or cookie with a long run of whitespace followed by a non‑whitespace character can cause the function to repeatedly scan the input. This vulnerability is a regular expression denial of service (CWE-1333). The result is the Node.js event loop or a browser tab being blocked for extended periods of time. The vulnerability does not affect confidentiality or integrity, but it can disrupt service by preventing normal processing of responses from malicious or on‑path servers.

Affected Systems

Applications that use forge.http together with a socket pool to communicate with untrusted servers are affected. All versions from 0.1.2 up to but not including 1.4.3 are vulnerable; the issue was fixed in version 1.4.3 of the digitalbazaar:forge package.

Risk and Exploitability

The CVSS score is 5.9, indicating a moderate severity. The EPSS score of less than 1% suggests that, at the time of assessment, the likelihood of exploitation is very low and the vulnerability has not yet been widely exploited. It is not listed in the CISA KEV catalog. Exploitation requires an attacker to control a server that sends a maliciously crafted header or cookie to a client that uses the vulnerable forge.http implementation. Because it relies on processing external data, an on‑path attacker could trigger the denial of service by sending a long whitespace run. The event‑loop block can affect any Node.js process or browser tab using this library.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update digitalbazaar:forge to version 1.4.3 or later
  • Avoid using forge.http with a socket pool when communicating with untrusted servers; instead, route those connections through a sanitized layer that does not invoke the vulnerable trimming logic
  • Monitor the application for unusually high CPU usage or blocked event loop periods, and if detected, temporarily isolate or disable the forge.http parsing component until a patch can be applied

Generated by OpenCVE AI on November 13, 2026 at 14:12 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6cv4-p8m7-4r25 Forge: ReDoS in forge.http response header and cookie trimming
History
Type Values Removed Values Added
CPEs cpe:2.3:a:digitalbazaar:forge:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
First Time appeared Digitalbazaar
Digitalbazaar forge
Vendors & Products Digitalbazaar
Digitalbazaar forge
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Forge: ReDoS in forge.http response header and cookie trimming
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 10, 2026, 9:01 PM
Reserved
Nov 9, 2026, 9:22 PM
Status
Analyzed
Published
Nov 10, 2026, 7:21 PM
Modified
Nov 16, 2026, 3:46 PM
Severity
Moderate
Public date
Nov 10, 2026, 6:48 PM