Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-125333 EUVD-2026-122793GHSA-6cv4-p8m7-4r25

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

Published Nov 10, 2026 · Updated Nov 10, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
digitalbazaar forge >= 0.1.2, < 1.4.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS node-node-forge No fix yet —
Ubuntu 20.04 LTS node-node-forge No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-tensorboard No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jitsucom-jitsu-console 2.11.0-r43 —
Wolfi rolling kubeflow-centraldashboard 2.0.0-r9 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm node-forge >= 0.1.2, < 1.4.3 1.4.3 GHSA-6cv4-p8m7-4r25

References