Skip to content

npm パッケージに脆弱性パッチを適用する#4385

Merged
kenjiyoshid-a merged 4 commits intomainfrom
feature/npmの脆弱性パッチを適用
Apr 2, 2026

Hidden character warning

The head ref may contain hidden characters: "feature/npm\u306e\u8106\u5f31\u6027\u30d1\u30c3\u30c1\u3092\u9069\u7528"
Merged

npm パッケージに脆弱性パッチを適用する#4385
kenjiyoshid-a merged 4 commits intomainfrom
feature/npmの脆弱性パッチを適用

Conversation

@KentaHizume
Copy link
Copy Markdown
Contributor

@KentaHizume KentaHizume commented Apr 2, 2026

この Pull request で実施したこと

この Pull request では実施していないこと

下記の path-to-regxp の脆弱性について、下記の issue の対応待ちです。
ReDoS攻撃に対して脆弱な正規表現を用いていなければ影響はありません。

3 high severity vulnerabilities

path-to-regexp  8.0.0 - 8.3.0
Severity: high
path-to-regexp vulnerable to Denial of Service via sequential optional groups - https://github.com/advisories/GHSA-j3q9-mxjg-w52f
path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards - https://github.com/advisories/GHSA-27v5-c462-wpq7
fix available via `npm audit fix --force`
Will install @openapitools/openapi-generator-cli@2.18.4, which is a breaking change
node_modules/path-to-regexp
  @nestjs/core  >=11.0.0-next.1
  Depends on vulnerable versions of path-to-regexp
  node_modules/@nestjs/core
    @openapitools/openapi-generator-cli  >=2.19.0
    Depends on vulnerable versions of @nestjs/core
    node_modules/@openapitools/openapi-generator-cli

3 high severity vulnerabilities

Issues や Discussions 、関連する Web サイトなどへのリンク

なし

@KentaHizume KentaHizume added this to the v2.0.2 milestone Apr 2, 2026
@KentaHizume KentaHizume self-assigned this Apr 2, 2026
@KentaHizume KentaHizume added dependencies Pull requests that update a dependency file npm npmパッケージの更新 labels Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 06:58
@KentaHizume KentaHizume linked an issue Apr 2, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

npm パッケージの脆弱性対応の一環として、サンプル SPA/CSR フロントエンド群で利用している @openapitools/openapi-generator-cli を更新し、併せて lockfile 上の依存解決結果(間接依存のバージョン)を更新する PR です。

Changes:

  • @openapitools/openapi-generator-cli2.28.3 → 2.31.0 に更新(複数サンプル)
  • 各サンプルの package-lock.json を更新し、関連する間接依存(例: @nestjs/*, glob, fs-extra など)を追随
  • ルートの package-lock.json でも脆弱性対応を含む依存更新(例: express-rate-limit, path-to-regexp, lodash など)

Reviewed changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
samples/web-csr/dressca-frontend/package-lock.json openapi-generator-cli 更新に伴う依存解決結果の更新
samples/web-csr/dressca-frontend/consumer/package.json openapi-generator-cli のバージョン更新
samples/web-csr/dressca-frontend/admin/package.json openapi-generator-cli のバージョン更新
samples/external-id-sample-for-spa/auth-frontend/package-lock.json openapi-generator-cli 更新に伴う依存解決結果の更新
samples/external-id-sample-for-spa/auth-frontend/app/package.json openapi-generator-cli のバージョン更新
samples/azure-ad-b2c-sample/auth-frontend/package-lock.json openapi-generator-cli 更新に伴う依存解決結果の更新
samples/azure-ad-b2c-sample/auth-frontend/app/package.json openapi-generator-cli のバージョン更新
package-lock.json ルート(ドキュメント lint 等)向け依存の脆弱性対応更新
Files not reviewed (3)
  • samples/azure-ad-b2c-sample/auth-frontend/package-lock.json: Language not supported
  • samples/external-id-sample-for-spa/auth-frontend/package-lock.json: Language not supported
  • samples/web-csr/dressca-frontend/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread samples/web-csr/dressca-frontend/package-lock.json
Comment thread samples/external-id-sample-for-spa/auth-frontend/package-lock.json
Comment thread samples/azure-ad-b2c-sample/auth-frontend/package-lock.json
@kenjiyoshid-a kenjiyoshid-a merged commit 62102f9 into main Apr 2, 2026
19 checks passed
@kenjiyoshid-a kenjiyoshid-a deleted the feature/npmの脆弱性パッチを適用 branch April 2, 2026 07:32
@KentaHizume KentaHizume changed the title npm パッケージに脆弱性パッチを適用 npm パッケージに脆弱性パッチを適用する Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file npm npmパッケージの更新

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2.0.2] ライブラリに脆弱性パッチを適用

3 participants