GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use brace-expansion >2.0.1 by redsun82 · Pull Request #3065 · github/codeql-action

Conversation

@redsun82

@redsun82 redsun82 commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@redsun82
redsun82 requested a review from a team as a code owner August 29, 2025 14:53
Copilot AI review requested due to automatic review settings August 29, 2025 14:53
Copilot AI reviewed Aug 29, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the brace-expansion dependency to require version >= 2.0.1, which appears to address a security vulnerability by updating the regular expression pattern used in the brace expansion logic.

  • Updates package.json to add explicit brace-expansion dependency with minimum version 2.0.1
  • Updates compiled JavaScript files to reflect the new brace-expansion implementation with improved regex pattern
  • Fixes a potential ReDoS (Regular Expression Denial of Service) vulnerability in the comma-matching pattern

Reviewed Changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated no comments.

File Description
package.json Adds explicit brace-expansion dependency with version constraint >=2.0.1
lib/*.js (multiple files) Generated JavaScript code reflecting the updated brace-expansion package with security fix
Files not reviewed (1)
  • package-lock.json: Language not supported

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mbg
mbg reviewed Aug 29, 2025
View reviewed changes
Comment thread package.json Outdated
"uuid": "^11.1.0",
"zlib": "^1.0.5"
"zlib": "^1.0.5",
"brace-expansion": ">=2.0.1"

@mbg mbg Aug 29, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Minor: I believe the dependencies are in alphabetical order, so it would be good if this addition maintained that order.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@aibaars aibaars Aug 29, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We don't depend on brace-expansion ourselves, right? Perhaps best to try to update the dependency that pulls in the outdated library version.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@redsun82 redsun82 Sep 8, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

unfortunately, that dependency comes from https://www.npmjs.com/package/@actions/glob, which is stuck at 0.5.0 from a year ago

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@aibaars aibaars Sep 8, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Let's ask the actions folk to update their dependencies.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@redsun82 redsun82 Sep 8, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

looking better, that dependency points to brace-expansion < 2.0.0, which is not problematic. The only problematic ones are 2.0.0 (that we don't have) and 2.0.1. I tried retracing where that comes from, but in the end just resorted to an explicit override of that specific version

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer
henrymercer reviewed Aug 29, 2025
View reviewed changes
Comment thread package-lock.json Outdated
Comment on lines +7214 to +7215
"node_modules/minimatch/node_modules/brace-expansion": {
"version": "1.1.12",

@henrymercer henrymercer Aug 29, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Note that we're still pulling in v1.1.12 here — if we want to override this I think we need to modify the overrides property in package.json.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@aibaars aibaars Aug 29, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Either that or update all the dependencies that rely on old versions of brace-expansion

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@henrymercer henrymercer Aug 29, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Right, if we can update minimatch, that's better. We've had situations before where we've wanted to bump a transient dependency before the direct dependency had bumped it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@redsun82 redsun82 Aug 29, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Aha, now I see why dependabot didn't manage to do this update. I'll get back to it on Monday.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@redsun82 redsun82 Sep 8, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

(notice I didn't tell which Monday 😜 😅 on it now)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@redsun82
Override brace-expansion from 2.0.1 to 2.0.2
f11caf4
@redsun82
redsun82 force-pushed the redsun82/update-brace-expansion branch from 7b474e5 to f11caf4 Compare September 8, 2025 08:53
@redsun82 redsun82 changed the title Use brace-expansion >= 2.0.1 Use brace-expansion >2.0.1 Sep 8, 2025
redsun82 added 2 commits September 8, 2025 14:03
@redsun82
Merge branch 'main' into redsun82/update-brace-expansion
16f15bc
@redsun82
Build
d42097d
henrymercer
henrymercer reviewed Sep 8, 2025
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I had a look at the lockfile and we're still pulling in v1.1.11 of brace-expansion — does that need updating too?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@redsun82

redsun82 commented Sep 12, 2025

Copy link
Copy Markdown
Contributor Author

I had a look at the lockfile and we're still pulling in v1.1.11 of brace-expansion — does that need updating too?

No, I double checked and the versions that need updating are just 2.0.0 (which we don't use) and 2.0.1. Versions <2.0.0 are ok.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@redsun82
Merge branch 'main' into redsun82/update-brace-expansion
a124438
henrymercer
henrymercer approved these changes Sep 12, 2025
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@redsun82
redsun82 merged commit f92cc3a into main Sep 12, 2025
@redsun82
redsun82 deleted the redsun82/update-brace-expansion branch September 12, 2025 14:06
@github-actions github-actions Bot mentioned this pull request Sep 25, 2025
Merge main into releases/v3 #3149
Merged
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mbg mbg mbg left review comments
Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@henrymercer henrymercer henrymercer approved these changes
+1 more reviewer
@aibaars aibaars aibaars left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@redsun82 @mbg @aibaars @henrymercer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.