Skip to content

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

Open
sbouchet wants to merge 2 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 2 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 and security.
    • Standardized dependency handling across development, testing, and extension components.
  • Documentation

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

    • Improved automated conflict resolution for package configuration updates.

@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 and others added 2 commits August 5, 2026 16:05
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>
@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

📝 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: rgrunber, azatsarynnyy, romannikitenko

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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 non-exempt code package.json changes have matching .rebase/add rules, rebase.sh routes every path, and .rebase/CHANGELOG.md contains the PR #771 entry.
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 the brace-expansion override updates.
✨ 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
Comment on lines +11 to +24
#### @sbouchet
https://github.com/che-incubator/che-code/pull/771

- code/package.json
- code/build/package.json
- code/build/npm/gyp/package.json
- code/extensions/copilot/package.json
- code/extensions/copilot/chat-lib/package.json
- code/extensions/markdown-language-features/package.json
- code/extensions/npm/package.json
- code/test/automation/package.json
- code/test/integration/browser/package.json
- code/test/sanity/package.json
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Keep the PR #771 file list complete.

The supplied PR context identifies launcher/package.json as a changed launcher manifest, but Lines 14-23 do not list it. Add it to this entry. An incomplete list can leave a changed file without the expected rebase conflict handling.

🤖 Prompt for 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.

In @.rebase/CHANGELOG.md around lines 11 - 24, Add launcher/package.json to the
PR `#771` file list in the `@sbouchet` changelog entry, preserving the existing
entries and ordering.

@github-actions

github-actions Bot commented Aug 5, 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.

2 participants