p PatchFirst

CVE-2026-125333

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

CVSS 5.9 · Medium · EPSS 0.6% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

npm ls node-forge
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="node-node-forge"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system · node

Affected products and versions

  • forge

    Versions
    • >= 0.1.2, < 1.4.3: Affected

    No fix published

  • node-forge npm

    Affected ranges
    • SEMVER: ≥ 0.1.2, < 1.4.3

    Update to 1.4.3

  • node-node-forge Ubuntu 20.04 LTS

    Versions
    • 0.8.5~dfsg-2
    • 0.9.1~dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-node-forge Ubuntu 22.04 LTS

    Versions
    • 0.10.0~dfsg-3
    • 1.2.1~dfsg-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →