Sourced from node-forge's changelog.
1.3.2 - 2025-11-25
Security
- HIGH: ASN.1 Validator Desynchronization
- An Interpretation Conflict (CWE-436) vulnerability in node-forge versions 1.3.1 and below enables remote, unauthenticated attackers to craft ASN.1 structures to desynchronize schema validations, yielding a semantic divergence that may bypass downstream cryptographic verifications and security decisions.
- Reported by Hunter Wodzenski.
- CVE ID: CVE-2025-12816
- GHSA ID: GHSA-5gfm-wpxj-wjgq
- HIGH: ASN.1 Unbounded Recursion
- An Uncontrolled Recursion (CWE-674) vulnerability in node-forge versions 1.3.1 and below enables remote, unauthenticated attackers to craft deep ASN.1 structures that trigger unbounded recursive parsing. This leads to a Denial-of-Service (DoS) via stack exhaustion when parsing untrusted DER inputs.
- Reported by Hunter Wodzenski.
- CVE ID: CVE-2025-66031
- GHSA ID: GHSA-554w-wpv2-vw27
- MODERATE: ASN.1 OID Integer Truncation
- An Integer Overflow (CWE-190) vulnerability in node-forge versions 1.3.1 and below enables remote, unauthenticated attackers to craft ASN.1 structures containing OIDs with oversized arcs. These arcs may be decoded as smaller, trusted OIDs due to 32-bit bitwise truncation, enabling the bypass of downstream OID-based security decisions.
- Reported by Hunter Wodzenski.
- CVE ID: CVE-2025-66030
- GHSA ID: GHSA-65ch-62r8-g69g
Fixed
- [asn1] Fix for vulnerability identified by CVE-2025-12816 PKCS#12 MAC verification bypass due to missing macData enforcement and improper asn1.validate routine.
- [asn1] Add
fromDer()max recursion depth check.
- Add a
asn1.maxDepthglobal configurable maximum depth of 256.- Add a
asn1.fromDer()per-callmaxDepthoption.- NOTE: The default maximum is assumed to be higher than needed for valid data. If this assumption is false then this could be a breaking change. Please file an issue if there are use cases that need a higher maximum.
- NOTE: The per-call
maxDepthparameter has not been exposed up through all of the API stack due to the complexities involved. Please file an issue if there are use cases that require this instead of changing the default maximum.- [asn1] Improve OID handling.
- Error on parsed OID values larger than
2**32 - 1.- Error on DER OID values larger than
2**53 - 1.