Skip to content

Fix critical CVEs by replacing deprecated 'request' package - #604

Merged
sbouchet merged 2 commits into
che-incubator:mainfrom
sbouchet:fix/remove-request-package-cves
Dec 12, 2025
Merged

sbouchet merged 2 commits into
che-incubator:mainfrom
sbouchet:fix/remove-request-package-cves

Conversation

@sbouchet

@sbouchet sbouchet commented Dec 3, 2025 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Removed deprecated request package and replaced with axios to fix CVE-2023-28155.
Applied fixes across launcher and che extensions for ESM compatibility.

Changes:

  • Replaced request with axios in package.json
  • Upgraded @kubernetes/client-node from 0.22.0 to 1.4.0
  • Updated ts-jest from 29.2.5 to 29.4.5 for better ESM compatibility
  • Added transformIgnorePatterns for @kubernetes/client-node
  • Fixed test mocks for ESM compatibility

🤖 Generated with Claude Code

What issues does this PR fix?

fix several CVEs:

CVE Package Severity Status
GHSA-p8p7-x288-28g6 request (SSRF) Moderate ✅ FIXED
GHSA-72xf-g2v4-qvf3 tough-cookie (Prototype Pollution) Moderate ✅ FIXED
GHSA-hw8r-x6gr-5gjp jsonpath-plus (RCE) Critical ✅ FIXED
GHSA-pppg-cpfq-h7wr jsonpath-plus (RCE) Critical ✅ FIXED
All form-data CVEs form-data Critical ✅ FIXED

Before & After Vulnerability Counts

Package Before After Reduction
launcher 8 (2 high, 5 moderate, 1 low) 3 (2 moderate, 1 low) -5
code/remote 5 (1 high, 4 moderate) 2 (1 high, 1 moderate) -3
che-resource-monitor 8+ 1 (moderate) -7+
che-github-authentication 5+ 1 (moderate) -4+
che-api 13+ 5 -8+

Total CVEs eliminated: ~27 vulnerabilities including all critical request-related issues!

How to test this PR?

Does this PR contain changes that override default upstream Code-OSS behavior?

  • the PR contains changes in the code folder (you can skip it if your changes are placed in a che extension )
  • the corresponding items were added to the CHANGELOG.md file
  • rules for automatic git rebase were added to the .rebase folder

@github-actions

github-actions Bot commented Dec 3, 2025 •

Copy link
Copy Markdown
Contributor

Click here to review and test in web IDE: Contribute

@github-actions

github-actions Bot commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

Removed deprecated 'request' package and replaced with axios to fix
CVE-2023-28155.
Applied fixes across launcher and che extensions for ESM compatibility.

Changes:
- Replaced 'request' with 'axios' in package.json
- Upgraded @kubernetes/client-node from 0.22.0 to 1.4.0
- Updated ts-jest from 29.2.5 to 29.4.5 for better ESM compatibility
- Added transformIgnorePatterns for @kubernetes/client-node
- Fixed test mocks for ESM compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

Signed-off-by: Stephane Bouchet <[email protected]>
@sbouchet
sbouchet force-pushed the fix/remove-request-package-cves branch from cf3cbe1 to cdc30fa Compare December 5, 2025 16:35
@github-actions

github-actions Bot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Comment thread .rebase/CHANGELOG.md Resolved
@RomanNikitenko

Copy link
Copy Markdown
Collaborator

@sbouchet
I got git-changes for che-extensions when I did npm install in the code folder.
Could you double check it:

image

- removed unecessary rebase changelog entry
- re-run npm install and fix missing package-lock.json entries

Signed-off-by: Stephane Bouchet <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@RomanNikitenko RomanNikitenko left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  • the changes look good to me
  • jest-related dependencies were updated in some extensions, there are still ones that use older version. But it was not a target of the current PR - so - no problem to update them within a separate PR when we have a chance
  • tested few use cases related to the kubernetes/client-node usage - I didn't detect any regression.

@sbouchet
Thank you very much for this update, the PR is ready for merge from my point of view!

@sbouchet

Copy link
Copy Markdown
Collaborator Author
  • jest-related dependencies were updated in some extensions, there are still ones that use older version. But it was not a target of the current PR - so - no problem to update them within a separate PR when we have a chance

yes, i did not wanted to go too far with this one. i'll create a new Issue/PR for this.

@github-actions

Copy link
Copy Markdown
Contributor

@sbouchet
sbouchet merged commit 275be25 into che-incubator:main Dec 12, 2025
@sbouchet
sbouchet deleted the fix/remove-request-package-cves branch December 12, 2025 15:26
@sbouchet sbouchet moved this from Ready for Review to ✅ Done in Eclipse Che Team C Backlog [DEPRECATED] Dec 12, 2025
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.

2 participants