-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
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:
- Force tar@7.5.3 in package.json overrides
- Delete node_modules and package-lock.json
- npm install && npx cap sync ios
- 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
Reactions are currently unavailable