@angular/core 9.0.0 dependency causes a circular security vulnerability

Đang mở
#1,042 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
angular, typescript
Lĩnh vực
devtools, security

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện quá trình phân giải dependency với npm install và npm audit fix --force bằng Angular 18 và Codelyzer 6.0.1. Kiểm tra metadata dependency của package để xác định ràng buộc Angular và xác minh cách npm phân giải ràng buộc đó. Hoàn tất khi đường dẫn dependency được Codelyzer hỗ trợ không còn tạo ra lỗ hổng Angular đã được báo cáo hoặc kết quả audit vòng tròn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
2.5k
Fork
232
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mgechev/codelyzer

Tất cả issue của mgechev/codelyzer

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.