@angular/core 9.0.0 dependency causes a circular security vulnerability
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- angular, typescript
調査の方向性
まず、Angular 18 と Codelyzer 6.0.1 を使用して、npm install と npm audit fix --force による依存関係の解決を再現します。パッケージの依存関係メタデータを調査して Angular の制約を特定し、npm がそれをどのように解決するかを確認します。対応している Codelyzer の依存関係パスによって、報告された Angular の脆弱性や循環した audit 結果が生成されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
While working to fix security vulnerabilities in my own project, Codelyzer 6.0.02 gets flagged for Cross Site Scripting in Angular.. Trying to use npm audit fix --force will cause npm to install Codelyzer 0.0.28 for some strange reason. After the first run of npm audit fix --force, vulnerabilities for tslint, minimist, and optimist are flagged by npm. Running npm audit fix --force again will cause the vulnerabilities to revert back to the original vulnerability that suggests installing Codelyzer 0.0.28. Checking Codelyzer's current required version of @angular/core shows that it depends on Angular 9, which is an angular version flagged by the vulnerability link I mentioned above.
Context and configuration
Please share:
Bug is caused by dependency on Angular 9.
To Reproduce
Run npm install on a project running Angular 18 (or version 11 or higher) & Codelyzer 6.0.02, and follow npm's inline suggestions for fixing vulnerabilities. (see description above).
Expected behavior
Codelyzer should not cause security vulnerabilities when used with the latest version of Angular.
Code
npm install
npm audit fix --force
Environment
- Version 6.0.1
- OS: MacOS Sonoma 14.4.1
- Node.js version: 22.11.0
- Package manager (yarn/npm) version: 10.9.0
- Angular version: 18.2.11
- tslint version: 5.20.1
- 主要言語
- TypeScript
- スター
- 2.5k
- フォーク
- 232
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mgechev/codelyzer のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 32/100
-
Angular 14オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
-
Support for Angular 10対応中かも @ccarmesin が 1842 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
Dependency Dashboardオープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
mgechev/codelyzer の issue をすべて見る
似ている issue
-
clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster maturity:stable P3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
openclaw/openclaw#200937 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
accepted bug needs-info triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
zts212653/clowder-ai#2025 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
letehaha/moneymatter#906 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
blinkospace/blinko#1287 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Feyisara2108/stellargive#1379 ·
メンテナーはふだん 1 日以内に返信