Skip to content

fix(create-plugin): Weak RSA Key Size#3780

Open
tomaioo wants to merge 1 commit into
kintone:mainfrom
tomaioo:fix/security/weak-rsa-key-size
Open

fix(create-plugin): Weak RSA Key Size#3780
tomaioo wants to merge 1 commit into
kintone:mainfrom
tomaioo:fix/security/weak-rsa-key-size

Conversation

@tomaioo
Copy link
Copy Markdown

@tomaioo tomaioo commented May 11, 2026

Summary

Security: Weak RSA Key Size

Problem

Severity: Medium | File: packages/create-plugin/src/privateKey.ts:L10

The generatePrivateKey function uses RSA with 1024-bit key size (b: 1024), which is considered cryptographically weak by modern standards. NIST recommends at least 2048-bit keys for RSA.

Solution

Increase the RSA key size to at least 2048 bits: new RSA({ b: 2044 }) or use { b: 2048 }

Changes

  • packages/create-plugin/src/privateKey.ts (modified)

The generatePrivateKey function uses RSA with 1024-bit key size (b: 1024), which is considered cryptographically weak by modern standards. NIST recommends at least 2048-bit keys for RSA.

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
@tomaioo tomaioo requested a review from a team as a code owner May 11, 2026 00:12
@tomaioo tomaioo requested review from chihiro-adachi and nameless-mc and removed request for a team May 11, 2026 00:12
@github-actions github-actions Bot added the pkg: create-plugin @kintone/create-plugin label May 11, 2026
@chihiro-adachi
Copy link
Copy Markdown
Contributor

@tomaioo
Thanks! I'll take a look.

@chihiro-adachi chihiro-adachi changed the title Security: Weak RSA Key Size fix(create-plugin): Weak RSA Key Size May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: create-plugin @kintone/create-plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants