Skip to content

[Snyk] Security upgrade @angular/compiler from 17.3.1 to 19.2.17#47

Open
MManke188 wants to merge 1 commit intomasterfrom
snyk-fix-81c588d03024e612d6dcb7bfb50139a0
Open

[Snyk] Security upgrade @angular/compiler from 17.3.1 to 19.2.17#47
MManke188 wants to merge 1 commit intomasterfrom
snyk-fix-81c588d03024e612d6dcb7bfb50139a0

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
high severity Cross-site Scripting (XSS)
SNYK-JS-ANGULARCOMPILER-14157154
  706  

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 December 9, 2025 10:40
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 high-severity XSS vulnerability (SNYK-JS-ANGULARCOMPILER-14157154) by upgrading @angular/compiler from version 17.3.1 to 19.2.17. However, the upgrade introduces a critical compatibility issue by only updating the compiler package while leaving all other Angular packages at version 17.3.1.

Key Changes

  • Upgrades @angular/compiler from v17.3.1 to v19.2.17 (a two-major-version jump)
  • Updates package-lock.json with new version, integrity hash, and license field
  • Changes Node.js engine requirement from ^18.13.0 || >=20.9.0 to ^18.19.1 || ^20.11.1 || >=22.0.0

Reviewed changes

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

File Description
frontend/package.json Updates @angular/compiler dependency to v19.2.17 while other Angular packages remain at v17.3.1
frontend/package-lock.json Updates compiler package metadata including version, resolved URL, integrity hash, license field, and Node.js engine requirements
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
"@angular/cli": "^17.3.1",
"@angular/common": "^17.3.1",
"@angular/compiler": "^17.3.1",
"@angular/compiler": "^19.2.17",
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Upgrading only @angular/compiler to v19.2.17 while keeping all other Angular packages at v17.3.1 creates a version mismatch. Angular packages should be kept in sync to avoid compatibility issues.

The following packages are still at v17.3.1:

  • @angular/animations
  • @angular/cli
  • @angular/common
  • @angular/core
  • @angular/forms
  • @angular/localize
  • @angular/platform-browser
  • @angular/platform-browser-dynamic
  • @angular/platform-server
  • @angular/router
  • @angular/ssr
  • @angular/compiler-cli (devDependency)

All Angular packages should be upgraded together to the same major version to maintain compatibility.

Suggested change
"@angular/compiler": "^19.2.17",
"@angular/compiler": "^17.3.1",

Copilot uses AI. Check for mistakes.
"@angular/cli": "^17.3.1",
"@angular/common": "^17.3.1",
"@angular/compiler": "^17.3.1",
"@angular/compiler": "^19.2.17",
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

Upgrading only @angular/compiler to v19.2.17 while keeping all other Angular packages at v17.3.1 creates a version mismatch. Angular packages should be kept in sync to avoid compatibility issues.

The following packages are still at v17.3.1:

  • @angular/animations
  • @angular/cli
  • @angular/common
  • @angular/core
  • @angular/forms
  • @angular/localize
  • @angular/platform-browser
  • @angular/platform-browser-dynamic
  • @angular/platform-server
  • @angular/router
  • @angular/ssr
  • @angular/compiler-cli (devDependency)

All Angular packages should be upgraded together to the same major version to maintain compatibility.

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