CVE-2026-125333: Forge: ReDoS in forge.http response header and cookie trimming
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-6cv4-p8m7-4r25
Summary
The node-forge library contains a Regular Expression Denial of Service (ReDoS) vulnerability in its HTTP parsing logic due to inefficient whitespace trimming. Developers utilizing the forge.http module should upgrade to version 1.4.3 or later to mitigate potential event loop blocking.
Who is affected
Applications using the forge.http module to process HTTP responses from untrusted servers or on-path attackers are at risk. An attacker can supply large, specifically crafted headers containing extensive whitespace to block the client's event loop for minutes, effectively causing a denial of service.
Exploitability
The vulnerability is rated Medium with a CVSS 3.1 score of 5.9, requiring high attack complexity to execute successfully. With an EPSS score of 0.006 and no listing in CISA's Known Exploited Vulnerabilities catalog, active exploitation in the wild is currently considered low.
Remediation
- Upgrade the node-forge package to version 1.4.3 or higher.
- Implement input validation to restrict the maximum size of HTTP response headers before they are passed to the forge.http module.
How to check your project
- Inspect package-lock.json or yarn.lock files for dependencies on node-forge versions ranging from 0.1.2 up to, but not including, 1.4.3.
- Verify if the project utilizes the forge.http module, as it is bundled within forge.all but not loaded by default when requiring the base node-forge package.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | node-forge |
>= 0.1.2, < 1.4.3 | 1.4.3 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
Does this vulnerability affect all users of node-forge?
No. The flaw is limited to the forge.http module. Applications that use other parts of node-forge without utilizing forge.http are not affected.
What is the technical cause of the ReDoS?
The library uses an inefficient regular expression /\s*$/ to trim strings, which exhibits quadratic time complexity O(n^2) when processing long sequences of whitespace followed by a non-whitespace character.
Is there any risk of data theft or unauthorized access?
No. The impact is strictly limited to a denial of service through event loop blocking; there is no impact on data confidentiality or integrity.
Original advisory description
References
- WEB https://github.com/digitalbazaar/forge/security/advisories/GHSA-6cv4-p8m7-4r25
- WEB https://github.com/digitalbazaar/forge/pull/1169
- WEB https://github.com/digitalbazaar/forge/commit/326a4d0903ee46358bc849a5c3fd96d9c21489bd
- PACKAGE https://github.com/digitalbazaar/forge
- WEB https://github.com/digitalbazaar/forge/releases/tag/v1.4.3
Source records: GHSA-6cv4-p8m7-4r25 (OSV.dev) · EPSS by FIRST, 2026-11-21.