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.
Github GHSA