Remove cpx from package.json in twenty-ui since it was unused and caused dependabot alert.#15147
Merged
FelixMalfait merged 1 commit intomainfrom Oct 16, 2025
Merged
Remove cpx from package.json in twenty-ui since it was unused and caused dependabot alert.#15147FelixMalfait merged 1 commit intomainfrom
FelixMalfait merged 1 commit intomainfrom
Conversation
…d and caused dependabot alert
Contributor
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR removes the unused cpx dependency from the twenty-ui package's devDependencies to address Dependabot Alert 102. The alert flagged a security vulnerability in the braces library, which is a transitive dependency of cpx, involving uncontrolled resource consumption. The removal is safe because cpx was not being utilized anywhere in the build process - the package uses Vite for building (via "build": "npx vite build" script) and has no references to cpx in its configuration or scripts. This change aligns with security best practices of removing unused dependencies that introduce vulnerabilities.
Important Files Changed
Changed Files
| Filename | Score | Overview |
|---|---|---|
| packages/twenty-ui/package.json | 5/5 | Removed unused cpx dependency from devDependencies to fix security vulnerability |
Confidence score: 5/5
- This PR is extremely safe to merge with no risk of breaking functionality
- Score reflects straightforward dependency removal with clear security justification and no functional impact
- No files require special attention - the change is isolated and well-justified
1 file reviewed, no comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes Dependabot Alert 102 - uncontrolled resource consumption in braces.
braces@1.8.5 was coming from the cpx@1.5.0 dependency in packages/twenty-ui/package.json. That release of cpx dragged in chokidar@1.7.0 → micromatch@2.3.11 → braces@^1.8.2.
Now, even though there are mentions of
braces: "npm:~3.0.2"in yarn.lock, it resolves to3.0.3since ~ allows latest patch in semver.