node-forge breaking changes
Updated December 4, 2026
On this page
Latest version 1.4.4, released November 23, 2026. Source repository
Its 1.0.0 release requires Node.js 6.13.0 or later. Node.js end of life dates.
- From 0.10.0 to 1.4.4: 31 breaking changes in 4 versions.
- From 0.6.0 to 1.4.4: 143 breaking changes in 8 versions.
node-forge 1.4.4 breaking changes
- Behavior changed
Data encrypted with RC2 effective key sizes that are not multiples of 8 bits by earlier versions no longer decrypts. The default and other multiples of 8 are unchanged. github.com - Behavior changed
pki.privateKeyFromAsn1
RSAPrivateKey values with multiple primes or a version other than 0 are now rejected with an error instead of loading. Replace multi-prime keys that were used to sign with forge. github.com - Behavior changed
pki.privateKeyFromPem
RSAPrivateKey values with multiple primes or a version other than 0 are now rejected with an error instead of loading. Replace multi-prime keys that were used to sign with forge. github.com - Behavior changed
util.encode64
Characters above 0xff are encoded by their low byte, as Node.js does, instead of producing invalid base64. Input should be a binary string; use util.encodeUtf8 for text. github.com
node-forge 1.4.3 breaking changes
- Behavior changed
ed25519.verify
Signatures verified against small-order public keys, which previously verified, are now rejected. Code that verifies against attacker-chosen keys may see verification failures. github.com - Behavior changed
pki.verifyCertificateChain
Chains with a non-critical nameConstraints extension that the names below it violate now fail verification. Code that relied on those chains verifying must be checked, and a verify callback can still override errors. github.com
node-forge 1.4.1 breaking changes
- Behavior changed
RSASSA PKCS#1 v1.5 signature verification now requires a canonical DER DigestInfo. Signatures with non-canonical encodings that previously verified now fail. github.com - Behavior changed
asn1.fromDer
Nested BIT STRING values are now kept undecoded. Code that relied on nested decoding must decode the inner BIT STRING value, after its leading unused bits octet, with asn1.fromDer(). github.com - Behavior changed
asn1.oidToDer
OID strings whose first arc is not 0, 1 or 2, or whose second arc is over 39 under 0 or 1, now throw an error. github.com - Behavior changed
decipher.finish
Data with non-PKCS#7 padding such as ANSI X.923 or ISO 10126 now fails to decrypt. To decrypt it, set decipher.mode.unpad to false before finish() and remove the padding in your code. github.com - Behavior changed
pbe.generatePkcs12Key
pbe.generatePkcs12Key() and pkcs12.generateKey() now reject iteration counts less than one. github.com - Behavior changed
pem.decode
A PEM BEGIN line's label is now the shortest one followed by five dashes. Inputs whose labels contain double dashes may now parse differently. github.com - Behavior changed
pkcs12.pkcs12FromAsn1
PKCS#12 files with a MAC iteration count less than one are now rejected. Files that used zero iterations will no longer load. github.com - Behavior changed
pki.verifyCertificateChain
Certificate signatures are now verified using the padding scheme and parameters of the certificate's own signature algorithm. Chains that only passed under the issuer's scheme may now fail. github.com - Behavior changed
tagLength
Zero and other invalid GCM tag lengths now throw an error, and null or undefined now means the 128-bit default. Use a valid tag length and re-encrypt data that was encrypted with an empty tag. github.com
node-forge 1.0.0 breaking changes
- Removed
forge.debug
The forge.debug API is removed for security reasons, since it could allow prototype pollution. Code that calls it must stop using it. github.com - Removed
forge.http.parseUrl
The alias for forge.util.parseUrl is removed. Use the WHATWG URL Standard URL class instead. github.com - Removed
forge.task
The undocumented forge.task API is removed. Code that uses it must be changed or moved to other code. github.com - Removed
forge.util.getQueryVariables
Replace it with URLSearchParams and custom code as needed. github.com - Removed
forge.util.makeLink
Replace it with URL and custom code as needed. github.com - Removed
forge.util.makeRequest
Replace it with URL and custom code as needed. github.com - Removed
forge.util.parseFragment
Replace it with URL and custom code as needed. github.com - Removed
forge.util.parseUrl
Use the WHATWG URL Standard URL class instead. Environments without URL support need a polyfill. github.com - Renamed
The repository's default branch is now main. Tooling that references master may need updating. github.com - Behavior changed
Versions are now prefixed with v in the release process. Other tools, scripts, or scanners may need to adapt. github.com
And 6 more in this version. Sign up to see every change
node-forge 0.10.0 breaking changes
- Removed
"node-forge".jsbn.BigInteger.square
"node-forge".jsbn.BigInteger.square was removed in node-forge 0.10.0 npmjs.com - Removed
"node-forge".pki.Certificate.getAttribute
"node-forge".pki.Certificate.getAttribute was removed in node-forge 0.10.0 npmjs.com - Removed
util.deletePath
util.deletePath was removed as it is not part of the cryptography focus; use lodash unset instead. github.com - Removed
util.getPath
util.getPath was removed as it is not part of the cryptography focus; use lodash get instead. github.com - Removed
util.setPath
util.setPath was removed because of a prototype pollution security issue; use lodash set instead. github.com - Configuration changed
Node.js 4 is no longer supported; the code may still work but is not tested. Users on Node.js 4 should upgrade their runtime. github.com - Signature changed
"node-forge".cipher.StartOptions.additionalData
Was additionalData?: string; now additionalData?: string | undefined. npmjs.com - Signature changed
"node-forge".cipher.StartOptions.iv
Was iv?: util.ByteBuffer | Byte[] | Bytes; now iv?: util.ByteBuffer | Byte[] | Bytes | undefined. npmjs.com - Signature changed
"node-forge".cipher.StartOptions.tag
Was tag?: util.ByteStringBuffer; now tag?: util.ByteStringBuffer | undefined. npmjs.com - Signature changed
"node-forge".cipher.StartOptions.tagLength
Was tagLength?: number; now tagLength?: number | undefined. npmjs.com
And 56 more in this version. Sign up to see every change
node-forge 0.9.0 breaking changes
- Signature changed
"node-forge".hmac.Algorithm
Was type Algorithm = "sha1" | "md5" | "sha256"; now type Algorithm = "sha1" | "md5" | "sha256" | "sha512". npmjs.com - Signature changed
"node-forge".jsbn.BigInteger.toString
Was toString(): string; now toString(b?: number): string. npmjs.com - Signature changed
"node-forge".pki.decryptRsaPrivateKey
Was function decryptRsaPrivateKey(pem: PEM, passphrase?: string): PrivateKey function decryptRsaPrivateKey(pem: PEM, password: string): PrivateKey; now function decryptRsaPrivateKey(pem: PEM, passphrase?: string): rsa.PrivateKey function... npmjs.com - Signature changed
"node-forge".pki.privateKeyFromPem
Was function privateKeyFromPem(pem: PEM): PrivateKey; now function privateKeyFromPem(pem: PEM): rsa.PrivateKey. npmjs.com - Signature changed
"node-forge".pki.publicKeyFromPem
Was function publicKeyFromPem(pem: PEM): PublicKey; now function publicKeyFromPem(pem: PEM): rsa.PublicKey. npmjs.com - Signature changed
"node-forge".pki.verifyCertificateChain
Was function verifyCertificateChain(caStore: CAStore, chain: Certificate[], customVerifyCallback?: (verified: boolean | string, depth: number, chain: Certificate[]) => boolean): boolean; now function verifyCertificateChain(caStore... npmjs.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
node-forge 0.8.0 breaking changes
- Removed
"node-forge".pki.ed25519.Key.byteLength
"node-forge".pki.ed25519.Key.byteLength was removed in node-forge 0.8.0 npmjs.com - Removed
"node-forge".pki.ed25519.Key.slice
"node-forge".pki.ed25519.Key.slice was removed in node-forge 0.8.0 npmjs.com
And 14 more in this version.
node-forge 0.7.0 breaking changes
- Removed
Bower and bundle distribution is no longer provided by this package and now lives in forge-dist. github.com - Removed
"node-forge".pki.Key
"node-forge".pki.Key was removed in node-forge 0.7.0 npmjs.com
And 22 more in this version.
node-forge 0.6.0 breaking changes
- Removed
"node-forge".cipher.BlockCipher.mode
"node-forge".cipher.BlockCipher.mode was removed in node-forge 0.6.0 npmjs.com - Removed
"node-forge".cipher.Mode
"node-forge".cipher.Mode was removed in node-forge 0.6.0 npmjs.com
And 118 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.