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 packages/backend-openapi-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dist"
],
"dependencies": {
"@backstage/errors": "workspace:^",
"@backstage/errors": "0.1.1",

Choose a reason for hiding this comment

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

critical

This change replaces the workspace reference workspace:^ with a pinned, outdated version 0.1.1. This is problematic in a monorepo for several reasons:

  1. Breaks Monorepo Integrity: It forces this package to use a published, old version of @backstage/errors instead of the current version within this repository, defeating the purpose of a monorepo.
  2. Introduces Version Skew: The current version of @backstage/errors in this repository is 1.2.1. Pinning to 0.1.1 will cause this package to use a significantly older version, which could lead to bugs, inconsistencies, and missing security fixes.

The correct way to fix the underlying security vulnerability is to keep the workspace:^ reference and update the yarn.lock file at the root of the repository. This will ensure the transitive dependency is updated to a secure version while maintaining the integrity of the monorepo's internal dependencies.

Suggested change
"@backstage/errors": "0.1.1",
"@backstage/errors": "workspace:^",

"@types/express": "^4.17.6",
"@types/express-serve-static-core": "^4.17.5",
"express": "^4.17.1",
Expand Down
Loading