CVE-2026-118775

Forge: ASN.1 OID first arc truncation in asn1.oidToDer

Medium published · updated · also known as GHSA-4642-5MCJ-2RQW

5.3
CVSS score out of 10 · NVD (NIST)

Description

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, asn1.oidToDer() in lib/asn1.js did not range-check the first two arcs of an OID. An application that accepted an untrusted OID string, checked or authorized that string, and then encoded it with asn1.oidToDer() could emit DER representing a different, trusted OID from the one that was checked. DER parsing is not affected. This issue is fixed in version 1.4.1.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
node-forge npm <= 1.4.01.4.1 GitHub
forge digitalbazaar <1.4.11.4.1 NVD

References