Skip to content

[Bug]: Capacitor CLI 7.x is incompatible with tar@7.5.3 #8310

@joaranda

Description

@joaranda

Capacitor Version

Capacitor CLI 7.x is incompatible with tar@7.5.3, causing complete build failure with error "Cannot read properties of undefined (reading 'extract')" at template.js:9.

This blocks users from applying the security patch for CVE-2026-23745 (path traversal in tar ≤7.5.2).

Platforms Affected

iOS
Android

Reproduction:

  1. Force tar@7.5.3 in package.json overrides
  2. Delete node_modules and package-lock.json
  3. npm install && npx cap sync ios
  4. Build fails

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Current Behavior
When tar@7.5.3 is installed (either directly or via transitive dependency update), running npx cap sync fails with:
✖ update ios - failed!
[error] TypeError: Cannot read properties of undefined (reading 'extract')
at extractTemplate
(/node_modules/@capacitor/cli/dist/util/template.js:9:25)

Expected Behavior

Force tar@7.5.3 in package.json overrides

Project Reproduction

Force tar@7.5.3 in package.json overrides

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions