CVE-2026-118775
MEDIUM 5.3CVSS 3.1Forge: ASN.1 OID first arc truncation in asn1.oidToDer
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.
- Published
- 29 Oct 2026
- Last modified
- 4 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-190
- Also known as
- GHSA-4642-5mcj-2rqw
- Sources
- NVDJSONOSV GHSA-4642-5mcj-2rqwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | digitalbazaar | forgecpe:2.3:a:digitalbazaar:forge:*:*:*:*:*:*:*:* |
< 1.4.1 | 1.4.1 |
| OSV | npm | node-forge | < 1.4.1 | 1.4.1 |
References
- https://github.com/digitalbazaar/forge/commit/e56a3dde8e4e63bae566bb32546eeaf92f515e1e · Patch, WEB
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.1 · Release Notes, WEB
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-4642-5mcj-2rqw · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-118775 · ADVISORY
- https://github.com/digitalbazaar/forge · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 29 Oct 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Oct 2026)