Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. node-forge
  4. ›
  5. CVE-2026-33896

CVE-2026-33896: Forge has a basicConstraints bypass in its certificate chain verification (RFC 5280 violation)

March 26, 2026 (updated March 27, 2026)

pki.verifyCertificateChain() does not enforce RFC 5280 basicConstraints requirements when an intermediate certificate lacks both the basicConstraints and keyUsage extensions. This allows any leaf certificate (without these extensions) to act as a CA and sign other certificates, which node-forge will accept as valid.

References

  • github.com/advisories/GHSA-2328-f5f3-gj25
  • github.com/digitalbazaar/forge
  • github.com/digitalbazaar/forge/commit/2e492832fb25227e6b647cbe1ac981c123171e90
  • github.com/digitalbazaar/forge/security/advisories/GHSA-2328-f5f3-gj25
  • nvd.nist.gov/vuln/detail/CVE-2026-33896

Code Behaviors & Features

Detect and mitigate CVE-2026-33896 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.0

Fixed versions

  • 1.4.0

Solution

Upgrade to version 1.4.0 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation

Source file

npm/node-forge/CVE-2026-33896.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 28 Mar 2026 00:17:14 +0000.