npm パッケージに脆弱性パッチを適用する#4385
Merged
kenjiyoshid-a merged 4 commits intomainfrom 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
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
npm パッケージの脆弱性対応の一環として、サンプル SPA/CSR フロントエンド群で利用している @openapitools/openapi-generator-cli を更新し、併せて lockfile 上の依存解決結果(間接依存のバージョン)を更新する PR です。
Changes:
@openapitools/openapi-generator-cliを2.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.
kenjiyoshid-a
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
この Pull request で実施したこと
この Pull request では実施していないこと
下記の path-to-regxp の脆弱性について、下記の issue の対応待ちです。
ReDoS攻撃に対して脆弱な正規表現を用いていなければ影響はありません。
@nestjs/core -> path-to-regexp : CVE-2026-4923, CVE-2026-4926 OpenAPITools/openapi-generator-cli#1182
これにより、 openapi-genartor を使用している AzureADB2C 、ExternalID 、 Dressca では 3件の警告が出ます。
Issues や Discussions 、関連する Web サイトなどへのリンク
なし