Skip to content

[Snyk] Fix for 2 vulnerabilities#53

Open
MManke188 wants to merge 1 commit into
masterfrom
snyk-fix-90f06bf9fc4238db9f83d8e761f66bde
Open

[Snyk] Fix for 2 vulnerabilities#53
MManke188 wants to merge 1 commit into
masterfrom
snyk-fix-90f06bf9fc4238db9f83d8e761f66bde

Conversation

@MManke188
Copy link
Copy Markdown
Collaborator

snyk-top-banner

Snyk has created this PR to fix 2 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
high severity Cross-site Scripting (XSS)
SNYK-JS-ANGULARCOMPILER-14908872
  651  
high severity Cross-site Scripting (XSS)
SNYK-JS-ANGULARCORE-14908871
  651  

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:

🦉 Cross-site Scripting (XSS)

Copilot AI review requested due to automatic review settings January 13, 2026 12:03
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 pull request attempts to fix 2 high-severity Cross-site Scripting (XSS) vulnerabilities in Angular by upgrading @angular/compiler and @angular/core from version 17.3.1 to 19.2.18. However, the PR only upgrades these two packages while leaving all other Angular framework packages and Angular-dependent third-party libraries at their current versions, creating critical compatibility issues.

Changes:

  • Upgraded @angular/compiler from 17.3.1 to 19.2.18
  • Upgraded @angular/core from 17.3.1 to 19.2.18
  • Updated package-lock.json with new dependency versions

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
frontend/package.json Upgraded @angular/compiler and @angular/core to version 19.2.18 to address XSS vulnerabilities
frontend/package-lock.json Updated lockfile with new versions and dependency tree for upgraded Angular packages
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

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

Comment thread frontend/package.json
Comment on lines +69 to +70
"@angular/compiler": "^19.2.18",
"@angular/core": "^19.2.18",
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Upgrading only @angular/compiler and @angular/core to version 19.2.18 while keeping all other Angular packages at version 17.3.1 creates a severe version mismatch. Angular requires all framework packages to be on the same major version. This configuration will likely cause runtime errors, compilation failures, and unpredictable behavior.

All Angular packages should be upgraded together, including:

  • @angular-devkit/build-angular
  • @angular/animations
  • @angular/cli
  • @angular/common
  • @angular/forms
  • @angular/localize
  • @angular/platform-browser
  • @angular/platform-browser-dynamic
  • @angular/platform-server
  • @angular/router
  • @angular/ssr
  • @angular/compiler-cli (in devDependencies)
  • @angular/language-service (in devDependencies)
Suggested change
"@angular/compiler": "^19.2.18",
"@angular/core": "^19.2.18",
"@angular/compiler": "^17.3.1",
"@angular/core": "^17.3.1",

Copilot uses AI. Check for mistakes.
"peerDependencies": {
"rxjs": "^6.5.3 || ^7.4.0",
"zone.js": "~0.14.0"
"zone.js": "~0.15.0"
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The zone.js peer dependency requirement has changed from ~0.14.0 (for Angular 17) to ~0.15.0 (for Angular 19). However, the current package.json specifies zone.js version "~0.14.4" at line 99. This version mismatch will cause peer dependency warnings or potential runtime issues. The zone.js version should be updated to ~0.15.0 to match the peer dependency requirement of @angular/core 19.2.18.

Copilot uses AI. Check for mistakes.
Comment thread frontend/package.json
Comment on lines +69 to +70
"@angular/compiler": "^19.2.18",
"@angular/core": "^19.2.18",
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Upgrading only @angular/compiler and @angular/core to version 19.2.18 creates multiple critical compatibility issues:

  1. Angular Framework Version Mismatch: All other Angular packages remain at version 17.3.1 (@angular/animations, @angular/cli, @angular/common, @angular/forms, @angular/localize, @angular/platform-browser, @angular/platform-browser-dynamic, @angular/platform-server, @angular/router, @angular/ssr, @angular/compiler-cli, @angular/language-service). Angular requires all framework packages to be on the same major version to function correctly.

  2. zone.js Peer Dependency Mismatch: Angular 19 requires zone.js ~0.15.0, but the current package.json specifies zone.js "~0.14.4".

  3. Third-party Angular Package Incompatibilities: Several Angular-dependent packages are incompatible with Angular 19:

    • @ng-bootstrap/ng-bootstrap at version 16.0.0 (designed for Angular 16)
    • ngx-echarts at version 17.2.0 (designed for Angular 17)
    • ngx-infinite-scroll at version 17.0.0 (designed for Angular 17)

This partial upgrade will cause compilation failures, runtime errors, and unpredictable behavior. A complete Angular upgrade strategy is required, upgrading all Angular packages and their dependencies together.

Suggested change
"@angular/compiler": "^19.2.18",
"@angular/core": "^19.2.18",
"@angular/compiler": "^17.3.1",
"@angular/core": "^17.3.1",

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