Skip to content

crypto: reject non-positive RSA modulus in certificates#63871

Open
builtbyashwin wants to merge 1 commit into
nodejs:mainfrom
builtbyashwin:main
Open

crypto: reject non-positive RSA modulus in certificates#63871
builtbyashwin wants to merge 1 commit into
nodejs:mainfrom
builtbyashwin:main

Conversation

@builtbyashwin

Copy link
Copy Markdown

If an RSA modulus is zero or negative, return undefined instead of attempting to convert it. This prevents issues with malformed certificates.

Fixes: #63824

If an RSA modulus is zero or negative, return undefined instead of
attempting to convert it. This prevents issues with malformed certificates.

Fixes: nodejs#63824
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. labels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node parsed a cert without error. But ZCertificate reported the error that the modulus is not a positive number

2 participants