Vulnerabilities/

Forge has a basicConstraints bypass in its certificate chain verification (RFC 5280 violation)

Severity:
High

Description

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.

Recommendation

Update the node-forge package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
node-forge
Anything's wrong? Let us know Last updated on March 27, 2026