A personal agent with a browser, terminal, files, and work that keeps going built with CopilotKit and AG-UI.
TypeScript
fix: upgrade image-size to 2.0.3 (CVE-2025-71329) (#104)
Anupam Medirattaf7e7a9f99038
diff --git a/patches/[email protected] b/patches/[email protected]new file mode 100644index 0000000..06e8ea3--- /dev/null+++ b/patches/[email protected]@@ -0,0 +1,15 @@+diff --git a/src/Assets.js b/src/Assets.js+index 0870a4c62c7ef9e7fb3a93c0bed74aa8ea5a765e..b557801ee74751211918ed7e4223ca654e50e2e5 100644+--- a/src/Assets.js++++ b/src/Assets.js+@@ -167,9 +167,7 @@ async function getAssetData(+ assetUrlPath = (0, _pathUtils.normalizePathSeparatorsToPosix)(assetUrlPath);+ const isImage = isAssetTypeAnImage(_path.default.extname(assetPath).slice(1));+ const assetInfo = await getAbsoluteAssetInfo(assetPath, platform);+- const isImageInput = assetInfo.files[0].includes(".zip/")+- ? _fs.default.readFileSync(assetInfo.files[0])+- : assetInfo.files[0];++ const isImageInput = _fs.default.readFileSync(assetInfo.files[0]);+ const dimensions = isImage ? (0, _imageSize.default)(isImageInput) : null;+ const scale = assetInfo.scales[0];+ const assetData = {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 7d35c0e..bb6bda7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -4,6 +4,12 @@ settings:autoInstallPeers: trueexcludeLinksFromLockfile: false+overrides:+ image-size: 2.0.3++patchedDependencies:+ [email protected]: 9ff078d9c4cca5ebb54c5b9603aa59b7de48cbac1f547ffb1adb87b66e5c2e3f+importers:.:@@ -3930,9 +3936,9 @@ packages:resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}engines: {node: '>= 4'}- resolution: {integrity: sha512-rH+46sQJ2dlwfjfhCyNx5thzrv+dtmBIhPHk0zgRUukHzZ/kRueTJXoYYsclBaKcSMBWuGbOFXtioLpzTb5euw==}- engines: {node: '>=16.x'}+ resolution: {integrity: sha512-9BJAtVCBth+76NwqnEfWr3PiRnYhbquk6K/USuQ1GQajz5NgLzO7tNsnoNjHfO7LuftgkBf+CCH6j28hjMbIYQ==}+ engines: {node: '>=18'}hasBin: true@@ -5331,9 +5337,6 @@ packages:resolution: {integrity: sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==}engines: {node: '>=0.6'}- resolution: {integrity: sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==}-resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==}@@ -7932,7 +7935,7 @@ snapshots:'@expo/[email protected]([email protected])':dependencies:- metro: 0.83.3([email protected])+ metro: 0.83.3(patch_hash=9ff078d9c4cca5ebb54c5b9603aa59b7de48cbac1f547ffb1adb87b66e5c2e3f)([email protected])metro-babel-transformer: 0.83.3([email protected])metro-cache: 0.83.3([email protected])metro-cache-key: 0.83.3@@ -11081,9 +11084,7 @@ snapshots:- dependencies:- queue: 6.0.2+ [email protected]: {}@@ -11839,7 +11840,7 @@ snapshots:connect: 3.7.0([email protected])flow-enums-runtime: 0.0.6jest-validate: 29.7.0- metro: 0.83.3([email protected])+ metro: 0.83.3(patch_hash=9ff078d9c4cca5ebb54c5b9603aa59b7de48cbac1f547ffb1adb87b66e5c2e3f)([email protected])metro-cache: 0.83.3([email protected])metro-core: 0.83.3metro-runtime: 0.83.3@@ -12012,7 +12013,7 @@ snapshots:'@babel/parser': 7.29.8'@babel/types': 7.29.8flow-enums-runtime: 0.0.6- metro: 0.83.3([email protected])+ metro: 0.83.3(patch_hash=9ff078d9c4cca5ebb54c5b9603aa59b7de48cbac1f547ffb1adb87b66e5c2e3f)([email protected])metro-babel-transformer: 0.83.3([email protected])metro-cache: 0.83.3([email protected])metro-cache-key: 0.83.3@@ -12045,7 +12046,7 @@ snapshots:- supports-color- utf-8-validate+ [email protected](patch_hash=9ff078d9c4cca5ebb54c5b9603aa59b7de48cbac1f547ffb1adb87b66e5c2e3f)([email protected]):dependencies:'@babel/code-frame': 7.29.7'@babel/core': 7.29.7([email protected])@@ -12063,7 +12064,7 @@ snapshots:flow-enums-runtime: 0.0.6graceful-fs: 4.2.11hermes-parser: 0.32.0- image-size: 1.2.1+ image-size: 2.0.3invariant: 2.2.4jest-worker: 29.7.0jsc-safe-url: 0.2.4@@ -12979,10 +12980,6 @@ snapshots:es-define-property: 1.0.1side-channel: 1.1.1- dependencies:- inherits: 2.0.4-diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex a8b1d53..4b25925 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -13,3 +13,9 @@ minimumReleaseAgeExclude:- '@tanstack/[email protected]'- '@tanstack/[email protected]'- '@tanstack/[email protected]'++overrides:+ 'image-size': '2.0.3'++patchedDependencies:+ [email protected]: patches/[email protected]