Skip to content

Commit 15b0dfe

Browse files
authored
Fix cost plugin cves (#2951)
* fix(cost-management): resolve 6 CVEs via linkifyjs resolution and msw v2 upgrade Pin linkifyjs to 4.3.2 to fix Prototype Pollution & XSS (CVE-2025-8101). Upgrade msw from v1 to v2 in frontend and backend plugin devDependencies, removing the transitive @xmldom/xmldom@0.8.10 dependency and its 5 High severity CVEs (XML injection, DoS, CDATA/comment/processing instruction injection). Made-with: Cursor * fix(cost-management): resolve 2 critical CVEs via scoped Yarn resolutions Add scoped resolutions to fix fast-xml-parser entity encoding bypass (CVE #3087, CVSS 9.3) and form-data unsafe random boundary generation (CVE #3010, CVSS 9.4) without affecting other consumers of these packages. - @aws-sdk/core/fast-xml-parser: 4.4.1 -> 4.5.4 - request/form-data: 2.3.3 -> 2.5.4 - @types/request/form-data: 2.5.3 -> 2.5.4 Made-with: Cursor
1 parent c9312e8 commit 15b0dfe

4 files changed

Lines changed: 30 additions & 208 deletions

File tree

workspaces/cost-management/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@
6060
"@types/react-dom": "^18",
6161
"react": "^18",
6262
"react-dom": "^18",
63-
"@protobufjs/inquire": "1.1.0"
63+
"@protobufjs/inquire": "1.1.0",
64+
"linkifyjs": "4.3.2",
65+
"@aws-sdk/core/fast-xml-parser": "4.5.4",
66+
"request/form-data": "2.5.4",
67+
"@types/request/form-data": "2.5.4"
6468
},
6569
"prettier": "@spotify/prettier-config",
6670
"lint-staged": {

workspaces/cost-management/plugins/cost-management-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@backstage/plugin-proxy-backend": "^0.6.11",
3636
"@types/lodash": "4.17.24",
3737
"@types/supertest": "^6.0.0",
38-
"msw": "^1.0.0",
38+
"msw": "^2.3.4",
3939
"supertest": "^7.0.0"
4040
},
4141
"exports": {

workspaces/cost-management/plugins/cost-management/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@testing-library/jest-dom": "^6.0.0",
5656
"@testing-library/react": "^16.0.0",
5757
"@testing-library/user-event": "^14.0.0",
58-
"msw": "^1.0.0",
58+
"msw": "^2.3.4",
5959
"react": "^18.3.1",
6060
"react-dom": "^18.3.1",
6161
"react-router-dom": "^6.30.2"

0 commit comments

Comments
 (0)