Skip to content

fix multiple CVEs by updating brace-expansion to patched versions - #771

Open
sbouchet wants to merge 4 commits into
che-incubator:mainfrom
sbouchet:CVE-2026-13149
Open

fix multiple CVEs by updating brace-expansion to patched versions#771
sbouchet wants to merge 4 commits into
che-incubator:mainfrom
sbouchet:CVE-2026-13149

Conversation

@sbouchet

@sbouchet sbouchet commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

This PR fixes CVE-2026-13149 and CVE-2026-69152

brace-expansion versions are updated to 5.0.9, 2.1.4 and 1.1.18

What issues does this PR fix?

https://redhat.atlassian.net/browse/CRW-11666
https://redhat.atlassian.net/browse/CRW-12223

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

Summary by CodeRabbit

  • Bug Fixes

    • Updated bundled dependency versions and compatibility rules to improve reliability.
    • Standardized dependency handling across development, testing, extension, and launcher components.
  • Documentation

    • Corrected changelog text and added missing release entries.
  • Chores

    • Improved automated conflict resolution for package configuration updates.
    • Applied consistent dependency version controls across supported components and tooling.

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Click here to review and test in web IDE: Contribute

@tolusha

tolusha commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Hi! I'm che-ai-assistant — I help with your pull requests.

Available commands:

  • /che-ai-assistant generate-che-doc — Generate a documentation PR based on this PR's changes
  • /che-ai-assistant ok-pr-review — Run a comprehensive PR review (summary, code review, deep review, impact analysis)
  • /che-ai-assistant check-pr-test-failures — Analyze failing CI checks, identify root causes, and suggest fixes
  • /che-ai-assistant update-che-e2e-tests — Update Eclipse Che e2e tests
  • /che-ai-assistant claude — Run a free-form instruction on this PR
  • /che-ai-assistant help — Show this help message

@github-actions

Copy link
Copy Markdown
Contributor

@sbouchet
sbouchet marked this pull request as ready for review August 5, 2026 22:23
@sbouchet sbouchet changed the title fix: override brace-expansion to patched versions fix multiple CVEs by updating brace-expansion to patched versions Aug 5, 2026
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 55aa43d6-d974-4726-8f77-351228867147

📥 Commits

Reviewing files that changed from the base of the PR and between 198d112 and e28e998.

⛔ Files ignored due to path filters (3)
  • code/build/npm/gyp/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/copilot/package-lock.json is excluded by !**/package-lock.json
  • code/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • .rebase/CHANGELOG.md
  • .rebase/add/code/build/npm/gyp/package.json
  • code/build/npm/gyp/package.json
  • code/extensions/copilot/package.json
  • code/package.json
🚧 Files skipped from review as they are similar to previous changes (4)
  • code/package.json
  • code/build/npm/gyp/package.json
  • .rebase/add/code/build/npm/gyp/package.json
  • code/extensions/copilot/package.json

📝 Walkthrough

Walkthrough

The pull request updates package override configurations across build, extension, test, and launcher manifests. It pins brace-expansion major versions 1 and 2 and updates version 5 from 5.0.7 to 5.0.9. It adds rebase conflict handlers for three package manifests. It also corrects and extends .rebase/CHANGELOG.md.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: azatsarynnyy, rgrunber, vitaliy-guliy

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise, uses imperative mood, and clearly describes updating brace-expansion to patched versions for CVE fixes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Rebase Rules For Upstream Changes ✅ Passed All 13 qualifying code package files have corresponding .rebase rules and rebase.sh routes; .rebase/CHANGELOG.md contains the PR #771 entry.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.rebase/CHANGELOG.md:
- Around line 11-24: Add launcher/package.json to the PR `#771` file list in the
`@sbouchet` changelog entry, preserving the existing entries and ordering.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8414b664-d1f2-4507-b9ae-e5d4b80bf7ae

📥 Commits

Reviewing files that changed from the base of the PR and between 9d00081 and dcf0f66.

⛔ Files ignored due to path filters (19)
  • code/build/npm/gyp/package-lock.json is excluded by !**/package-lock.json
  • code/build/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/che-api/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/che-port/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/che-remote/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/che-resource-monitor/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/copilot/chat-lib/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/copilot/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/css-language-features/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/html-language-features/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/json-language-features/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/markdown-language-features/package-lock.json is excluded by !**/package-lock.json
  • code/extensions/npm/package-lock.json is excluded by !**/package-lock.json
  • code/package-lock.json is excluded by !**/package-lock.json
  • code/remote/package-lock.json is excluded by !**/package-lock.json
  • code/test/automation/package-lock.json is excluded by !**/package-lock.json
  • code/test/integration/browser/package-lock.json is excluded by !**/package-lock.json
  • code/test/sanity/package-lock.json is excluded by !**/package-lock.json
  • launcher/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (33)
  • .rebase/CHANGELOG.md
  • .rebase/add/code/build/npm/gyp/package.json
  • .rebase/add/code/build/package.json
  • .rebase/add/code/extensions/copilot/chat-lib/package.json
  • .rebase/add/code/extensions/copilot/package.json
  • .rebase/add/code/extensions/css-language-features/package.json
  • .rebase/add/code/extensions/html-language-features/package.json
  • .rebase/add/code/extensions/json-language-features/package.json
  • .rebase/add/code/extensions/markdown-language-features/package.json
  • .rebase/add/code/extensions/npm/package.json
  • .rebase/add/code/package.json
  • .rebase/add/code/test/automation/package.json
  • .rebase/add/code/test/integration/browser/package.json
  • .rebase/add/code/test/sanity/package.json
  • code/build/npm/gyp/package.json
  • code/build/package.json
  • code/extensions/che-api/package.json
  • code/extensions/che-port/package.json
  • code/extensions/che-remote/package.json
  • code/extensions/che-resource-monitor/package.json
  • code/extensions/copilot/chat-lib/package.json
  • code/extensions/copilot/package.json
  • code/extensions/css-language-features/package.json
  • code/extensions/html-language-features/package.json
  • code/extensions/json-language-features/package.json
  • code/extensions/markdown-language-features/package.json
  • code/extensions/npm/package.json
  • code/package.json
  • code/test/automation/package.json
  • code/test/integration/browser/package.json
  • code/test/sanity/package.json
  • launcher/package.json
  • rebase.sh

Comment thread .rebase/CHANGELOG.md
@github-actions

github-actions Bot commented Aug 5, 2026

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.

@sbouchet
I've got git changes when I built che-code:

Image

che-code dockerfiles use v24.18.0 Node.js
could you try to rebuild che-code using v24.18.0 vestion?

@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.

other looks good to me

sbouchet and others added 3 commits August 6, 2026 08:11
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stephane Bouchet <sbouchet@redhat.com>
Extends brace-expansion overrides to all affected packages to fix
DoS via unbounded intermediate arrays (CRW-12223).

Signed-off-by: Stephane Bouchet <sbouchet@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stephane Bouchet <sbouchet@redhat.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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