Skip to content

[Snyk] Security upgrade @angular/cli from 17.3.1 to 20.3.15#56

Open
MManke188 wants to merge 1 commit intomasterfrom
snyk-fix-b387867469c3bd0eafce15eb85c1cb9f
Open

[Snyk] Security upgrade @angular/cli from 17.3.1 to 20.3.15#56
MManke188 wants to merge 1 commit intomasterfrom
snyk-fix-b387867469c3bd0eafce15eb85c1cb9f

Conversation

@MManke188
Copy link
Copy Markdown
Collaborator

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • frontend/package.json
  • frontend/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Directory Traversal
SNYK-JS-TAR-15127355
  596  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Directory Traversal

…nerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-TAR-15127355
Copilot AI review requested due to automatic review settings February 3, 2026 14:35
Copy link
Copy Markdown

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

This PR attempts to fix a directory traversal security vulnerability (SNYK-JS-TAR-15127355) in the tar dependency by upgrading @angular/cli from version 17.3.1 to 20.3.15. However, this approach creates critical compatibility issues.

Changes:

  • Upgrades @angular/cli from ^17.3.1 to ^20.3.15 in frontend/package.json

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

Comment thread frontend/package.json
"@angular-devkit/build-angular": "^17.3.1",
"@angular/animations": "^17.3.1",
"@angular/cli": "^17.3.1",
"@angular/cli": "^20.3.15",
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

Upgrading @angular/cli to version 20.3.15 while keeping all other Angular packages at version 17.3.1 will cause severe compatibility issues. The Angular CLI version should match the Angular framework version.

The following packages are still at version 17.3.1 and need to be upgraded together:

  • @angular-devkit/build-angular (line 65)
  • @angular/animations (line 66)
  • @angular/common (line 68)
  • @angular/compiler (line 69)
  • @angular/core (line 70)
  • @angular/forms (line 71)
  • @angular/localize (line 72)
  • @angular/platform-browser (line 73)
  • @angular/platform-browser-dynamic (line 74)
  • @angular/platform-server (line 75)
  • @angular/router (line 76)
  • @angular/ssr (line 77)
  • @angular/compiler-cli (line 102, devDependencies)
  • @angular/language-service (line 103, devDependencies)

Angular CLI 20.x requires Angular 20.x framework packages. Using mismatched versions will result in build failures and runtime errors. All Angular packages should be upgraded together as a coordinated set, or an alternative approach should be used to address the security vulnerability (such as upgrading just the tar dependency if possible).

Suggested change
"@angular/cli": "^20.3.15",
"@angular/cli": "^17.3.1",

Copilot uses AI. Check for mistakes.
Comment thread frontend/package.json
"@angular-devkit/build-angular": "^17.3.1",
"@angular/animations": "^17.3.1",
"@angular/cli": "^17.3.1",
"@angular/cli": "^20.3.15",
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

This upgrade may introduce TypeScript version incompatibilities. Angular 20.x typically requires TypeScript 5.5 or later, but the current project uses TypeScript ~5.4.3 (line 113). When upgrading Angular CLI to version 20.x, verify that the TypeScript version is also compatible. This should be coordinated with the full Angular framework upgrade.

Suggested change
"@angular/cli": "^20.3.15",
"@angular/cli": "^17.3.1",

Copilot uses AI. Check for mistakes.
Comment thread frontend/package.json
"@angular-devkit/build-angular": "^17.3.1",
"@angular/animations": "^17.3.1",
"@angular/cli": "^17.3.1",
"@angular/cli": "^20.3.15",
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The @ng-bootstrap/ng-bootstrap package (line 83) is currently at version ^16.0.0, which is designed for Angular 16.x. If Angular CLI is upgraded to 20.x (and the framework follows), this package will also need to be upgraded to a version compatible with Angular 20.x to avoid compatibility issues. This is part of the broader ecosystem dependency upgrade required.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants