Skip to content

fix(cli): bump xcode to ^4.0.0 to drop vulnerable uuid@7 - #8674

Merged
markemer merged 2 commits into
ionic-team:mainfrom
MauroKinjuk:fix/cli-xcode-4
Oct 27, 2026
Merged

markemer merged 2 commits into
ionic-team:mainfrom
MauroKinjuk:fix/cli-xcode-4

Conversation

@MauroKinjuk

Copy link
Copy Markdown
Contributor

Problem

@capacitor/cli depends on xcode@^3.0.1, which pulls uuid@^7.0.3. Every uuid < 11.1.1 is flagged by GHSA-w5hq-g745-h8pq, so every project installing the CLI gets a moderate audit advisory it can't resolve downstream (the vulnerable code path — uuid.v3/v5/v6 with an explicit buf — isn't actually reached, since xcode only calls uuid.v4(), but the advisory still trips audits and Dependabot alerts).

Fixes #8672

Change

cli/package.json: "xcode": "^3.0.1" → "^4.0.0".

[email protected] (released 2026-10-20) replaces uuid with Node's built-in crypto.randomUUID() (apache/cordova-node-xcode#153) and drops the dependency entirely. Expo made the same bump in expo/expo#51986.

Compatibility

Test plan

  • CI green (existing jest suite covers util/xcode.ts)
  • cap sync / cap migrate on an iOS project still edits project.pbxproj correctly

MauroKinjuk and others added 2 commits October 22, 2026 22:18
[email protected] replaces uuid with crypto.randomUUID()
(apache/cordova-node-xcode#153), removing the GHSA-w5hq-g745-h8pq
advisory (uuid <11.1.1) from the CLI's dependency tree.

The public API used by addSwiftFileToAppTarget (project, parseSync,
hasFile, getFirstTarget, addSourceFile, writeSync) is unchanged, so
@types/xcode@^3.0.0 remains accurate — no v4 typings exist anyway.
Engines are compatible: xcode@4 requires node >=14.17, the CLI
requires >=22.

Fixes ionic-team#8672
@markemer
markemer merged commit 463225f into ionic-team:main Oct 27, 2026
6 checks passed
renovate Bot added a commit to cigaleapp/cigale that referenced this pull request Nov 8, 2026
##### [v8.6.0](https://github.com/ionic-team/capacitor/blob/HEAD/CHANGELOG.md#860-2026-10-28)

##### Bug Fixes

- **android:** keep callbacks on non-public base classes from R8 ([02e43f8](ionic-team/capacitor@02e43f8))
- **android:** keep plugin annotation types from R8 full mode ([#8646](ionic-team/capacitor#8646)) ([9dc5aeb](ionic-team/capacitor@9dc5aeb))
- **cli:** bump xcode to ^4.0.0 to drop vulnerable uuid\@7 ([#8674](ionic-team/capacitor#8674)) ([463225f](ionic-team/capacitor@463225f))
- **cli:** redact sensitive values from telemetry payloads ([#8665](ionic-team/capacitor#8665)) ([d19f1ea](ionic-team/capacitor@d19f1ea))
- **cli:** report npm 12 blocked install scripts in doctor and migrate ([#8655](ionic-team/capacitor#8655)) ([841017a](ionic-team/capacitor@841017a))

##### Features

- **android:** recognize [@capacitor-community/ssl-pinning](https://github.com/capacitor-community/ssl-pinning) for cert pinning ([#8669](ionic-team/capacitor#8669)) ([19d2a40](ionic-team/capacitor@19d2a40))
- **cli:** recognize [@capacitor-community/ssl-pinning](https://github.com/capacitor-community/ssl-pinning) for auto cert copy ([#8666](ionic-team/capacitor#8666)) ([50a3c51](ionic-team/capacitor@50a3c51))

##### Reverts

- Revert "chore(ios): add `App/CapApp-SPM/Package.resolved` to `.gitignore` ([#8649](ionic-team/capacitor#8649))" ([175c933](ionic-team/capacitor@175c933)), closes [#8649](ionic-team/capacitor#8649)

#### [8.5.3](ionic-team/capacitor@8.5.2...8.5.3) (2026-10-07)

##### Bug Fixes

- **cli:** change Cordova AppDelegate.h imports for SPM ([#8618](ionic-team/capacitor#8618)) ([145560e](ionic-team/capacitor@145560e))

#### [8.5.2](ionic-team/capacitor@8.5.1...8.5.2) (2026-09-11)

##### Bug Fixes

- **android:** add null checks for plugin annotation when retrieving permissions ([#8400](ionic-team/capacitor#8400)) ([035b16a](ionic-team/capacitor@035b16a))
- **ios:** do not forward scene lifecycle events to the page before it has loaded ([#8595](ionic-team/capacitor#8595)) ([c567328](ionic-team/capacitor@c567328))
- resolve issues with safe area / systembars plugin ([#8535](ionic-team/capacitor#8535)) ([e37d9c6](ionic-team/capacitor@e37d9c6))

#### [8.5.1](ionic-team/capacitor@8.5.0...8.5.1) (2026-08-31)

##### Bug Fixes

- block navigation to the internal HTTP proxy path ([ee586ae](ionic-team/capacitor@ee586ae))
- **cli:** use POSIX paths in CapApp-SPM Package.swift ([#8549](ionic-team/capacitor#8549)) ([5e5bb3b](ionic-team/capacitor@5e5bb3b))
- **core:** prevent removeListener from removing wrong listener ([#8271](ionic-team/capacitor#8271)) ([5ac4dd6](ionic-team/capacitor@5ac4dd6))
##### [v8.5.3](https://github.com/ionic-team/capacitor/blob/HEAD/CHANGELOG.md#853-2026-10-07)

##### Bug Fixes

- **cli:** change Cordova AppDelegate.h imports for SPM ([#8618](ionic-team/capacitor#8618)) ([145560e](ionic-team/capacitor@145560e))
riderx added a commit to Cap-go/capacitor-plus that referenced this pull request Nov 11, 2026
* Release 8.3.2

* fix(cli): copy plugin files in CocoaPods projects (ionic-team#8467)

* Release 8.3.3

* chore(cli): update telemetry endpoint (ionic-team#8464)

* Release 8.3.4

* chore: format java code (ionic-team#8475)

* chore: format java code (ionic-team#8477)

* feat: add method getDouble to plugin config (ionic-team#7638)

Co-authored-by: jcesarmobile <[email protected]>

* fix(SystemBars): make `safe-area-inset-x` available on API <= 34 (ionic-team#8424)

* feat(cli): add experimental packageOptions (ionic-team#8471)

* feat(cli): capture ios_package_manager in telemetry (ionic-team#8482)

* fix(cli): revert live reload config on failure (ionic-team#8485)

* chore: fix typo in declarations.ts (ionic-team#8488)

* fix(SystemBars): respect `insetsHandling` disable (ionic-team#8481)

* fix(android): show only the requested system bar (ionic-team#8480)

Co-authored-by: Joey Pender <[email protected]>
Co-authored-by: Pedro Bilro <[email protected]>
Co-authored-by: Mark Anderson <[email protected]>

* chore: Decrease timeout for CI jobs from 60 to 30 minutes (ionic-team#8476)

Co-authored-by: jcesarmobile <[email protected]>

* Release 8.4.0

* fix(cli): patch Capacitor SPM dependency version in plugins (ionic-team#8492)

Co-authored-by: Mark Anderson <[email protected]>

* fix(cli): make SPM dependency patch work on prereleases (ionic-team#8508)

* Release 8.4.1

* chore: run `npm run fmt` to fix lint errors (ionic-team#8516)

* fix(android): explicitly grant URI permissions for image capture intent (ionic-team#8526)

* Release 8.4.2

* chore(android): fix lint issues (ionic-team#8542)

* fix(cli): support TypeScript 7 when loading capacitor.config.ts (ionic-team#8534)

* feat(ios): UIScene Support (ionic-team#8536)

* feat(cli): add migrator functionality for adopting UIScene (ionic-team#8544)

* Release 8.5.0

* fix(cli): use POSIX paths in CapApp-SPM Package.swift (ionic-team#8549)

Co-authored-by: Cursor <[email protected]>

* fix(core): prevent removeListener from removing wrong listener (ionic-team#8271)

Co-authored-by: Eric Horodyski <[email protected]>

* fix: block navigation to the internal HTTP proxy path

* Release 8.5.1

* fix(ios): do not forward scene lifecycle events to the page before it has loaded (ionic-team#8595)

* fix(android): add null checks for plugin annotation when retrieving permissions (ionic-team#8400)

Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Pedro Bilro <[email protected]>

* fix: resolve issues with safe area / systembars plugin (ionic-team#8535)

* Release 8.5.2

* fix(cli): change Cordova AppDelegate.h imports for SPM (ionic-team#8618)

* chore: add .build/ folder to gitignore (ionic-team#8640)

* Release 8.5.3

* chore(ios): add `App/CapApp-SPM/Package.resolved` to `.gitignore` (ionic-team#8649)

* Revert "chore(ios): add `App/CapApp-SPM/Package.resolved` to `.gitignore` (ionic-team#8649)"

This reverts commit eb06606.

* fix(android): keep plugin annotation types from R8 full mode (ionic-team#8646)

* docs: minor correction (ionic-team#8660)

* fix(cli): report npm 12 blocked install scripts in doctor and migrate (ionic-team#8655)

* feat(cli): recognize @capacitor-community/ssl-pinning for auto cert copy (ionic-team#8666)

* feat(android): recognize @capacitor-community/ssl-pinning for cert pinning (ionic-team#8669)

* fix(android): keep callbacks on non-public base classes from R8

* fix(cli): redact sensitive values from telemetry payloads (ionic-team#8665)

* fix(cli): bump xcode to ^4.0.0 to drop vulnerable uuid@7 (ionic-team#8674)

Co-authored-by: Mark Anderson <[email protected]>

* chore: add Backstage catalog-info.yaml

Adds a catalog-info.yaml so Capacitor and its core, cli, android, and ios packages show up in OutSystems' Backstage software catalog.

* Release 8.6.0

* fix(android): skip lifecycle events when the Capacitor bridge is not present (ionic-team#8683)

* fix(ios): read CapacitorCookies/CapacitorHttp isEnabled from injected global (ionic-team#8688)

* style: format files after merging plus

---------

Co-authored-by: Github Workflow (on behalf of markemer) <users.noreply.github.com>
Co-authored-by: jcesarmobile <[email protected]>
Co-authored-by: Alex J. <[email protected]>
Co-authored-by: Robin Genz <[email protected]>
Co-authored-by: Joey Pender <[email protected]>
Co-authored-by: Minh Vu <[email protected]>
Co-authored-by: Pedro Bilro <[email protected]>
Co-authored-by: Mark Anderson <[email protected]>
Co-authored-by: Conor Brady <[email protected]>
Co-authored-by: Omri Willheim <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Manik Tyagi <[email protected]>
Co-authored-by: Eric Horodyski <[email protected]>
Co-authored-by: Chace Daniels <[email protected]>
Co-authored-by: Gábor Tóth <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Tafel <[email protected]>
Co-authored-by: Piotr <[email protected]>
Co-authored-by: DravenLee <[email protected]>
Co-authored-by: OS-ruimoreiramendes <[email protected]>
Co-authored-by: Mauro Kinjuk <[email protected]>
Co-authored-by: Eric Horodyski <[email protected]>
Co-authored-by: Tori Chan <[email protected]>
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.

[Bug]: @capacitor/cli depends on xcode@^3.0.1, which pulls in vulnerable [email protected] (GHSA-w5hq-g745-h8pq)

2 participants