GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — crypto: skip DH checks for recognized groups by panva · Pull Request #67071 · nodejs/node

Conversation

@panva

@panva panva commented Oct 27, 2026

Copy link
Copy Markdown
Member

Explicit DH parameters are recognized as named groups during OpenSSL provider import, but DHPointer::check() only skips primality checks for groups constructed by name. This makes createDiffieHellman() block for seconds on standard MODP groups.

Query the imported key's group name to restore the legacy DH_check() shortcut without changing key generation. Add a deterministic regression test with randomness disabled and cover explicit and padded parameters through the JavaScript API.

Fixes: #67067

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@panva
crypto: skip DH checks for recognized groups
d9f2aab
Explicit DH parameters are recognized as named groups during OpenSSL
provider import, but DHPointer::check() only skips primality checks for
groups constructed by name. This makes createDiffieHellman() block for
seconds on standard MODP groups.

Query the imported key's group name to restore the legacy DH_check()
shortcut without changing key generation. Add a deterministic regression
test with randomness disabled and cover explicit and padded parameters
through the JavaScript API.

Fixes: nodejs#67067
Signed-off-by: Filip Skokan <[email protected]>
Assisted-by: Codex
@panva panva added the lts-watch-v24.x PRs that may need to be released in v24.x label Oct 27, 2026
@nodejs-github-bot

nodejs-github-bot commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/security-wg
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added dependencies PRs that add, update, or configure Node.js dependencies. needs-ci PRs that need a full CI run. labels Oct 27, 2026
@codecov

codecov Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.67%. Comparing base (75191c4) to head (d9f2aab).
⚠️ Report is 105 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67071      +/-   ##
==========================================
- Coverage   92.97%   90.67%   -2.30%     
==========================================
  Files         428      797     +369     
  Lines      195284   278320   +83036     
  Branches    30205    53528   +23323     
==========================================
+ Hits       181560   252370   +70810     
- Misses      13397    16328    +2931     
- Partials      327     9622    +9295     

see 500 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@panva panva added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 27, 2026
@panva panva mentioned this pull request Oct 28, 2026
crypto: createDiffieHellman(prime, generator) blocks for seconds with standard MODP primes (regression since 24.20.0 and 26.6.0) #67067
Closed
@panva panva added the lts-watch-v26.x PRs that may need to be released in v26.x. label Oct 29, 2026
@panva
panva requested a review from jasnell October 30, 2026 13:49
@panva panva added review wanted PRs that need review. and removed request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Oct 31, 2026
anonrig
anonrig approved these changes Nov 3, 2026
View reviewed changes
@panva panva added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. and removed review wanted PRs that need review. labels Nov 3, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 3, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78812/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@panva panva added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 4, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 3b209b2 into nodejs:main Nov 4, 2026
96 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Landed in 3b209b2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 4, 2026
@panva
panva deleted the fix-dh-named-group-check branch November 4, 2026 09:30
@paulrutter

paulrutter commented Nov 4, 2026

Copy link
Copy Markdown

@panva do you know in which Node 26 version this will land?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@panva

panva commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

The fix will be included in future 24.x and 26.x releases, following the usual release policy (at least two weeks in a current or alpha release first). Inclusion in any immediate next release is not guaranteed, as potential security releases follow a separate process.

paulrutter reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aduh95 pushed a commit that referenced this pull request Nov 11, 2026
@panva @aduh95
crypto: skip DH checks for recognized groups
5991efa
Explicit DH parameters are recognized as named groups during OpenSSL
provider import, but DHPointer::check() only skips primality checks for
groups constructed by name. This makes createDiffieHellman() block for
seconds on standard MODP groups.

Query the imported key's group name to restore the legacy DH_check()
shortcut without changing key generation. Add a deterministic regression
test with randomness disabled and cover explicit and padded parameters
through the JavaScript API.

Fixes: #67067
Signed-off-by: Filip Skokan <[email protected]>
Assisted-by: Codex
PR-URL: #67071
Reviewed-By: Yagiz Nizipli <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
2026-11-12, Version 27.0.0-alpha.0.1.0 (Alpha) #67415
Merged
@panva panva mentioned this pull request Nov 12, 2026
[v26.x backport] crypto and TLS fixes and features #67442
Closed
@panva panva added the backport-open-v26.x Indicate that the PR has an open backport label Nov 12, 2026
aduh95 pushed a commit that referenced this pull request Nov 13, 2026
@panva @aduh95
crypto: skip DH checks for recognized groups
a2605a0
Explicit DH parameters are recognized as named groups during OpenSSL
provider import, but DHPointer::check() only skips primality checks for
groups constructed by name. This makes createDiffieHellman() block for
seconds on standard MODP groups.

Query the imported key's group name to restore the legacy DH_check()
shortcut without changing key generation. Add a deterministic regression
test with randomness disabled and cover explicit and padded parameters
through the JavaScript API.

Fixes: #67067
Signed-off-by: Filip Skokan <[email protected]>
Assisted-by: Codex
PR-URL: #67071
Backport-PR-URL: #67442
Reviewed-By: Antoine du Hamel <[email protected]>
@panva panva added backported-to-v26.x PRs backported to the v26.x-staging branch. and removed backport-open-v26.x Indicate that the PR has an open backport lts-watch-v26.x PRs that may need to be released in v26.x. labels Nov 13, 2026
aduh95 pushed a commit that referenced this pull request Nov 20, 2026
@panva @aduh95
crypto: skip DH checks for recognized groups
215b63b
Explicit DH parameters are recognized as named groups during OpenSSL
provider import, but DHPointer::check() only skips primality checks for
groups constructed by name. This makes createDiffieHellman() block for
seconds on standard MODP groups.

Query the imported key's group name to restore the legacy DH_check()
shortcut without changing key generation. Add a deterministic regression
test with randomness disabled and cover explicit and padded parameters
through the JavaScript API.

Fixes: #67067
Signed-off-by: Filip Skokan <[email protected]>
Assisted-by: Codex
PR-URL: #67071
Backport-PR-URL: #67442
Reviewed-By: Antoine du Hamel <[email protected]>
This was referenced Nov 20, 2026
2026-11-30, Version 24.23.0 'Krypton' (LTS) #67663
Open
2026-11-30, Version 26.14.0 'Lithium' (LTS) #67664
Open
@aduh95 aduh95 added backported-to-v24.x PRs backported to the v24.x-staging branch. and removed lts-watch-v24.x PRs that may need to be released in v24.x labels Nov 20, 2026
Renegade334 pushed a commit to Renegade334/node that referenced this pull request Nov 21, 2026
@panva @aduh95
crypto: skip DH checks for recognized groups
5ba293f
Explicit DH parameters are recognized as named groups during OpenSSL
provider import, but DHPointer::check() only skips primality checks for
groups constructed by name. This makes createDiffieHellman() block for
seconds on standard MODP groups.

Query the imported key's group name to restore the legacy DH_check()
shortcut without changing key generation. Add a deterministic regression
test with randomness disabled and cover explicit and padded parameters
through the JavaScript API.

Fixes: nodejs#67067
Signed-off-by: Filip Skokan <[email protected]>
Assisted-by: Codex
PR-URL: nodejs#67071
Backport-PR-URL: nodejs#67442
Reviewed-By: Antoine du Hamel <[email protected]>
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@panva @gabylb
crypto: skip DH checks for recognized groups
0f0b9c7
Explicit DH parameters are recognized as named groups during OpenSSL
provider import, but DHPointer::check() only skips primality checks for
groups constructed by name. This makes createDiffieHellman() block for
seconds on standard MODP groups.

Query the imported key's group name to restore the legacy DH_check()
shortcut without changing key generation. Add a deterministic regression
test with randomness disabled and cover explicit and padded parameters
through the JavaScript API.

Fixes: nodejs#67067
Signed-off-by: Filip Skokan <[email protected]>
Assisted-by: Codex
PR-URL: nodejs#67071
Reviewed-By: Yagiz Nizipli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@anonrig anonrig anonrig approved these changes
@jasnell jasnell Awaiting requested review from jasnell

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. backported-to-v24.x PRs backported to the v24.x-staging branch. backported-to-v26.x PRs backported to the v26.x-staging branch. dependencies PRs that add, update, or configure Node.js dependencies. needs-ci PRs that need a full CI run.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

crypto: createDiffieHellman(prime, generator) blocks for seconds with standard MODP primes (regression since 24.20.0 and 26.6.0)

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@panva @nodejs-github-bot @paulrutter @anonrig @aduh95
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.