Skip to content

[Snyk] Security upgrade @angular/compiler from 17.2.4 to 19.2.17#42

Open
Vivelis wants to merge 1 commit intomainfrom
snyk-fix-e547beaf0cd9a149f79f4f9796e892ec
Open

[Snyk] Security upgrade @angular/compiler from 17.2.4 to 19.2.17#42
Vivelis wants to merge 1 commit intomainfrom
snyk-fix-e547beaf0cd9a149f79f4f9796e892ec

Conversation

@Vivelis
Copy link
Copy Markdown
Owner

@Vivelis Vivelis commented Dec 8, 2025

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):

  • front/package.json
  • front/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 8, 2025 08:25
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 address a high-severity XSS vulnerability (SNYK-JS-ANGULARCOMPILER-14157154) by upgrading @angular/compiler from version 17.2.4 to 19.2.17. However, this approach creates critical compatibility issues that will prevent the application from building or running correctly.

Key Issues:

  • Only the @angular/compiler package is upgraded to v19, while all other Angular packages remain at v17
  • This creates peer dependency conflicts, particularly with @angular/compiler-cli
  • Angular packages must be upgraded together as a cohesive unit due to tight coupling

Reviewed changes

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

File Description
front/package.json Updates @angular/compiler dependency to ^19.2.17, creating version mismatch with other Angular v17 packages
front/package-lock.json Resolves @angular/compiler to 19.2.17, introducing peer dependency conflicts and incompatible Node engine requirements
Files not reviewed (1)
  • front/package-lock.json: Language not supported

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

Comment thread front/package.json
"@angular/animations": "^17.2.0",
"@angular/common": "^17.2.0",
"@angular/compiler": "^17.2.0",
"@angular/compiler": "^19.2.17",
Copy link

Copilot AI Dec 8, 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 version 19.2.17 while keeping all other Angular packages at version 17.2.0 will cause compatibility issues. Angular packages are designed to work together at the same major version.

All Angular packages should be upgraded together to version 19, including:

  • @angular/animations
  • @angular/common
  • @angular/core
  • @angular/forms
  • @angular/platform-browser
  • @angular/platform-browser-dynamic
  • @angular/platform-server
  • @angular/router
  • @angular/ssr
  • @angular/compiler-cli (in devDependencies)
  • @angular-devkit/build-angular (in devDependencies)
  • @angular/cli (in devDependencies)

This is a major version upgrade that requires coordinated updates and may involve breaking changes requiring code modifications.

Copilot uses AI. Check for mistakes.
Comment thread front/package-lock.json
Comment on lines +325 to +327
"version": "19.2.17",
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-19.2.17.tgz",
"integrity": "sha512-qo8psYASAlDiQ8fAL8i/E2JfWH2nPTpZDKKZxSWvgBVA8o+zUEjYAJu6/k6btnu+4Qcb425T0rmM/zao6EU9Aw==",
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

The upgraded @angular/compiler version 19.2.17 is incompatible with @angular/compiler-cli version 17.2.4, which has a peer dependency requiring @angular/compiler at version 17.2.4 (see line 360). This mismatch will cause peer dependency conflicts and build failures.

The @angular/compiler-cli must also be upgraded to version 19 to be compatible with the upgraded compiler.

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