Elestia Open Source Ratings
4.9

Forge

Keep, but not for new work. 8th of 10 cryptography and password hashing.

Forge (node-forge) is an old pure-JavaScript toolkit for X.509 certificates, PKCS formats, RSA and a TLS client. It is still maintained, but in 2025–2026 it had a long series of signature-forgery and denial-of-service advisories, and its main dependents are moving to Web Crypto-based libraries. Keep it where it already runs and stay on the latest version. For new work, pick Web Crypto or node:crypto, or @peculiar/x509 or PKI.js for certificates.

Best for: Existing codebases that need pure-JS PKCS#12, X.509 or legacy TLS handling where native Web Crypto or node:crypto cannot be used.

WebsiteGitHubnpm

Scores

Overall4.9

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 3.5, likely 2.5 to 4.5

Forge still runs in a huge number of installs and is maintained. But its record of serious verification bugs, its lack of types, its pure-JS speed and its loss of ground make it a poor pick for new work. Native Web Crypto and node:crypto, @peculiar/x509 or PKI.js for certificates, and node-argon2 or bcrypt for passwords do the job better. Keep it where it runs, on 1.4.3 or later.

GPT-6.2 Sol: 6.3, likely 5.2 to 7.4

Forge is a good fit when certificate formats or PKCS#12 bundles are central to the project. Web Crypto covers routine signing and encryption, and node-argon2 is a stronger fit for password storage on Node.js. Recent patches support continued use, while recurring verification fixes and slower relative adoption reduce confidence in Forge as a general choice for new projects.

Needed by many4.4

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Few developers work with PKI and certificates directly, and that is forge's main job. It does not hash passwords, which is half of the category's job. Most signing and encryption needs are now met by the built-in Web Crypto and node:crypto.

GPT-6.2 Sol: 4.8, likely 3.6 to 6.0

Many web projects need password hashing, signatures, or encryption, and built-in crypto APIs cover many of those operations. Forge’s distinctive use is certificate and key-format interoperability across Node.js and browsers. Browser measurements capture only part of that demand, leaving the size of the niche uncertain.

Helps a lot5.4

How well does it do the job for those who need it?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

Forge has many features, but its verification code has had repeated correctness bugs. Through 2026 these included RSA PKCS#1 v1.5 forgery, a missing Ed25519 S < L check, ignored nameConstraints and basicConstraints bypasses. It has no bundled types and a dated CommonJS API, and pure-JS speed falls well behind native crypto. Open issues show it still accepts certificates that other tools reject as invalid.

GPT-6.2 Sol: 6.7, likely 5.6 to 7.7

Forge 1.4.3 has substantial X.509 and PKCS#12 support and examples for common signing and encryption operations. PKCS#7 verification throws an error, and TypeScript users rely on community declarations. An independent browser benchmark found slower RSA signing and decryption than its Wasm implementation. It tested Forge 1.3.0, so the current performance gap is uncertain.

Holds up over time5.4

Will it still be a good choice in two years?

Claude Opus 5.5: 4.5, likely 3.0 to 6.0

Digital Bazaar still pushes commits (97 in the last year) and npm releases (6 versions), and security fixes arrive quickly. But 400 issues are open, an open issue asks whether the project will be kept alive, and there are no GitHub releases and no roadmap. The ecosystem is moving away from it: selfsigned v5 switched to @peculiar/x509 and PKI.js on top of native Web Crypto.

GPT-6.2 Sol: 6.3, likely 5.0 to 7.5

Forge recorded 97 commits and six npm versions in a year, with several recent security releases. A user-reported PFX regression was patched the next day, and 400 issues and 56 pull requests remain open. Digital Bazaar maintains the repository, and one maintainer tagged 1.4.3. Ongoing funding and release coverage across maintainers are unclear.

Used widely6.3

How many use it, and is that growing?

Claude Opus 5.5: 5.5, likely 4.0 to 7.0

Downloads are very high, at 218M per 4 weeks. But the year-over-year ratio is 2.16, well below the 4.1 median, so it is losing ground. Most installs come in as a dependency of other tools, such as dev-server certificate helpers and Google auth libraries, not from direct choice. The 3M dependent repos reflect those transitive lockfile entries.

  • npm downloadsLast4Weeks: 218M now against 101M a year ago, a ratio of 2.16 against the 4.1 median.
  • dependents: 3.0M repos but only 2,329 packages, which points to heavy transitive use.
  • bluesky posts: Only 1 post in 24 months, so there is almost no current attention.

GPT-6.2 Sol: 7.0, likely 5.5 to 8.2

Forge leads the supplied peers in tracked dependent repositories at roughly 3.04 million, with 2,329 tracked dependent npm packages. Historical installs through tools such as webpack-dev-server make the share of direct choices uncertain. Four-week downloads grew 2.16 times year over year, below the 4.1 times baseline and behind the noble libraries and node-argon2. That points to declining relative adoption despite a large installed base.

  • dependents repos, packages; peers dependentRepos: Shows the largest tracked repository footprint in the peer set.
  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; medianDownloadsRatio; peers: Shows slower growth than the catalog baseline and several peers.
  • github.com/webpack/webpack-dev-server/issues/4351: Documents historical transitive use through selfsigned.
  • github.com/jfromaniello/selfsigned: Documents selfsigned’s move away from Forge.
Vouched for5.3

Who stands behind it being good?

Claude Opus 5.5: 4.0, likely 2.5 to 5.5

Large tools have relied on it for years, which counts as past validation. Current independent signals point the other way: well-known dependents are dropping it, and its recent record is long lists of flaws found by outside researchers. It has no survey presence and no Hacker News coverage.

GPT-6.2 Sol: 6.5, likely 5.3 to 7.6

The signpdf P12 signer uses Forge for detached PDF signatures, and Formbricks documents its use through SAML Jackson for certificate generation. Microsoft’s MSAL Node documentation gives a Forge example for PFX conversion. These examples establish trust for specific workflows, while the State of JavaScript tools survey provides no Forge-specific satisfaction data.

Safe4.7

How safe is it to depend on?

Claude Opus 5.5: 3.5, likely 2.5 to 5.0

It has 36 advisories, 28 of them in the last 24 months. Many were HIGH-severity signature-forgery and certificate-validation bypasses, which is serious for a crypto library. They were patched quickly, and it has no dependencies. Its Scorecard is 6.1, with Code-Review, Fuzzing, SAST and Pinned-Dependencies all at 0. The dual BSD-3-Clause or GPL-2.0 licence permits commercial use.

  • advisories: 36 total, 28 in 24 months, five more published in November 2026.
  • scorecard: 6.1 overall; Code-Review, Fuzzing and SAST each 0.
  • nvd.nist.gov/vuln/detail/cve-2026-33894: RSA PKCS#1 v1.5 signature forgery, fixed in 1.4.0.
  • npm dependencies: 0 runtime dependencies.

GPT-6.2 Sol: 5.8, likely 4.5 to 6.9

Version 1.4.3 patches the latest listed TLS and Ed25519 issues and a high-severity X.509 verification flaw. Forge has no runtime npm dependencies and offers a permissive BSD-3-Clause option alongside GPL-2.0. Repeated fixes to certificate and signature handling make timely upgrades important. OpenSSF scores code review, fuzzing, and workflow dependency pinning at zero, and the release signing check is unscored.

Good

  • It covers a lot in one package with no dependencies: X.509, CSRs, PKCS#7 and #12, RSA, AES and a TLS client.
  • It runs in pure JavaScript in both browsers and Node, without native bindings.
  • It is still maintained: six npm versions came out in the last year, and the 2026 advisories were fixed quickly.
  • Its dual BSD-3-Clause or GPL-2.0 licence lets you use it commercially under the BSD terms.

Bad

  • About 28 advisories came out in 24 months, including several RSA and Ed25519 signature-forgery and certificate-chain bypass bugs.
  • It ships no types of its own and uses an old CommonJS API, and pure-JS crypto is slow next to native Web Crypto.
  • It is not a password-hashing library: it has PBKDF2 but no bcrypt or argon2.
  • Major dependents such as selfsigned v5 have replaced it with @peculiar/x509 and PKI.js.

The numbers

npm downloads, 4 weeks
218M ×2.2 in a year
GitHub stars
5.4k
Commits, 12 months
97
npm version
1.4.3 Nov 2026
Versions, 12 months
6
Advisories, 24 months
28 of 36 ever
OpenSSF Scorecard
6.1 out of 10, Nov 2026
Licence
(BSD-3-Clause OR GPL-2.0)

Read on 21 November 2026 from GitHub (digitalbazaar/forge), npm (node-forge), OSV and the OpenSSF Scorecard.

Cryptography and password hashing

  1. 8.2noble-curves
  2. 8.1noble-hashes
  3. 7.8node-argon2
  4. 7.4libsodium.js
  5. 6.5hash-wasm
  6. 6.2bcrypt.js
  7. 5.4node.bcrypt.js
  8. 4.9Forge
  9. 4.5TweetNaCl.js
  10. 1.7crypto-js
Compare all 10 on six scores