@angular/core 9.0.0 dependency causes a circular security vulnerability
还没有人认领这个 Issue。
评估
- 难度
- 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 漏洞或循环审计结果时,即表示完成。
由索引模型根据 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 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
难度 5/5 一周以上 新手友好度 15/100
查看 mgechev/codelyzer 的全部 Issue
相似的 Issue
-
agent-ready area: ui-server priority: p3 type: test
难度 2/5 1-3 小时 新手友好度 78/100
schlessera/brain-kit#4249 ·
维护者通常 1 天内回复
-
documentation tool triaged
难度 2/5 1-3 小时 新手友好度 73/100
can1357/oh-my-pi#19608 · 2 条评论 ·
维护者通常 1 天内回复
-
dependencies tech-debt
难度 2/5 1-3 小时 新手友好度 65/100
bcgov/nr-waste-plus#1549 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
blixvip/solana-tx-parse#18 ·