CVE-2026-125333 Forge: ReDoS in forge.http response header and cookie trimming

Medium 5.9 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-125333?

CVE-2026-125333 is a medium-severity vulnerability in digitalbazaar forge, published on 10 Nov 2026.

Official 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

Which versions are affected by CVE-2026-125333?

1 open source package ship an affected version, including node-forge.

PackageAffectedFixed in
node-forge npmFrom 0.1.21.4.3

How do I fix CVE-2026-125333?

Upgrade node-forge to 1.4.3 or later.

Is CVE-2026-125333 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-125333 exists.

Sources

Also known as GHSA-6cv4-p8m7-4r25, MINI-8x28-33vr-mgx4, MINI-96pw-3cc8-6xg5, MINI-9c9c-6m6v-vjqg, MINI-9f45-gj54-j65q, MINI-jf2p-5wjj-3548 and 2 more.

Is CVE-2026-125333 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free