Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@babel/runtime": "^7.17.9",
"axios": "^0.27.2",
"axios": "^1.12.0",

Choose a reason for hiding this comment

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

critical

This upgrade is correct for this file, but the fix is incomplete. The axios dependency in templates/react-app/package.json also needs to be upgraded from ^0.27.2 to ^1.12.0 to fully patch the security vulnerability across all project templates.

Choose a reason for hiding this comment

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

medium

While upgrading axios resolves the security vulnerability for this template, it appears this dependency might be unused within the app template's source code (e.g., templates/app/src/index.ts). If axios is indeed an unused dependency for this template, the best practice would be to remove it entirely. This would reduce the final bundle size and minimize the project's attack surface.

If it's intended as a placeholder for developers, then this upgrade is acceptable.

Choose a reason for hiding this comment

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

critical

While this upgrade is correct, the same dependency in templates/react-app/package.json has not been updated. It is still using the vulnerable version ^0.27.2. To fully address the security vulnerability and maintain consistency, please update the axios version in templates/react-app/package.json as well.

"core-js": "^3.22.3",
"web-vitals": "^2.1.4"
},
Expand Down