Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: bump vulnerable dependencies (#51381)

Ivan Vasilov075c611463d7
diff --git a/apps/ui-library/package.json b/apps/ui-library/package.json
index b41b4a42ccb..92bce342e9a 100644
--- a/apps/ui-library/package.json
+++ b/apps/ui-library/package.json
@@ -80,6 +80,7 @@
"@tanstack/react-start": "catalog:",
"@types/common-tags": "^1.8.4",
"@types/lodash": "^4.17.16",
+ "@types/node": "catalog:",
"@types/mdast": "^3.0.15",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
diff --git a/blocks/vue/package.json b/blocks/vue/package.json
index a39427db4a0..c6c650bcd7d 100644
--- a/blocks/vue/package.json
+++ b/blocks/vue/package.json
@@ -23,6 +23,7 @@
"vue-router": "^4.5.1"
},
"devDependencies": {
+ "@types/node": "catalog:",
"@typescript/native": "catalog:",
"shadcn": "^4.0.0",
"tsconfig": "workspace:*",
diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.json
index 3982a1c76e0..f97ec5a1199 100644
--- a/packages/dev-tools/package.json
+++ b/packages/dev-tools/package.json
@@ -26,6 +26,7 @@
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.0.0",
+ "@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"config": "workspace:*",
diff --git a/packages/eslint-config-supabase/package.json b/packages/eslint-config-supabase/package.json
index 580d6457822..582ef97f676 100644
--- a/packages/eslint-config-supabase/package.json
+++ b/packages/eslint-config-supabase/package.json
@@ -11,6 +11,7 @@
"devDependencies": {
"@shadcn/lint": "0.1.5",
"@tanstack/eslint-plugin-query": "^5.0.0",
+ "@types/node": "catalog:",
"@typescript-eslint/parser": "^8.48.0",
"@typescript/native": "catalog:",
"eslint-config-next": "^16.0.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a0dc8133d17..136b4d82f7b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -710,7 +710,7 @@ importers:
version: 1.6.6
smol-toml:
specifier: ^1.3.1
- version: 1.8.0
+ version: 1.9.0
tailwindcss:
specifier: 'catalog:'
version: 4.2.4
@@ -1043,7 +1043,7 @@ importers:
version: 0.10.1
'@modelcontextprotocol/sdk':
specifier: ^1.29.0
'@modelcontextprotocol/server':
specifier: ^2.0.0
version: 2.0.0
@@ -1602,7 +1602,7 @@ importers:
version: 0.52.2
next:
specifier: 'catalog:'
next-themes:
specifier: 'catalog:'
@@ -1684,10 +1684,10 @@ importers:
version: 7.29.7([email protected])
'@react-router/dev':
specifier: ^7.17.1
'@react-router/fs-routes':
specifier: ^7.18.4
'@shikijs/compat':
specifier: ^1.1.7
version: 1.6.0
@@ -1712,6 +1712,9 @@ importers:
'@types/mdast':
specifier: ^3.0.15
version: 3.0.15
+ '@types/node':
+ specifier: 'catalog:'
+ version: 22.13.14
'@types/react':
specifier: 'catalog:'
version: 19.2.14
@@ -1789,7 +1792,7 @@ importers:
vitest:
specifier: 'catalog:'
apps/www:
dependencies:
@@ -2152,6 +2155,9 @@ importers:
specifier: ^4.5.1
devDependencies:
+ '@types/node':
+ specifier: 'catalog:'
+ version: 22.13.14
'@typescript/native':
specifier: 'catalog:'
@@ -2493,6 +2499,9 @@ importers:
'@testing-library/user-event':
specifier: ^14.0.0
version: 14.6.1(@testing-library/[email protected])
+ '@types/node':
+ specifier: 'catalog:'
+ version: 22.13.14
'@types/react':
specifier: 'catalog:'
version: 19.2.14
@@ -2507,10 +2516,10 @@ importers:
version: link:../config
next:
specifier: 'catalog:'
next-router-mock:
specifier: ^0.9.13
react:
specifier: 'catalog:'
version: 19.2.6
@@ -2531,7 +2540,7 @@ importers:
vitest:
specifier: 'catalog:'
packages/eslint-config-supabase:
devDependencies:
@@ -2541,6 +2550,9 @@ importers:
'@tanstack/eslint-plugin-query':
specifier: ^5.0.0
+ '@types/node':
+ specifier: 'catalog:'
+ version: 22.13.14
'@typescript-eslint/parser':
specifier: ^8.48.0
@@ -2564,7 +2576,7 @@ importers:
version: 6.0.2
vitest:
specifier: 'catalog:'
packages/generator:
devDependencies:
@@ -2955,7 +2967,7 @@ importers:
version: 3.1.0
smol-toml:
specifier: ^1.6.1
- version: 1.8.0
+ version: 1.9.0
sonner:
specifier: ^1.5.0
@@ -4349,8 +4361,8 @@ packages:
resolution: {integrity: sha512-3RQHgEtvL1Frl/d1cSreo7qhJ3Gk1OdNUai/CtZ8G+wYeRQnJih3s9xJ9/kgYekPQRdwgh0HXRPqMlzWGwivIQ==}
engines: {node: ^20.19.0 || ^22.13.0 || ^23.5.0 || >=24.0.0, npm: '>=10'}
- '@fastify/[email protected]':
- resolution: {integrity: sha512-5DGmA8FTdB2XbDeEwc/5ZXBl6UbBAyBOOLlPuBnZ/N1SwdH9Ii+cOX3tBROlDgcTXxjOYnLMVoKk9+FXAw0CJw==}
+ '@fastify/[email protected]':
+ resolution: {integrity: sha512-yXSS27qPExaXeuLvMRMXOLtpipzfQYNjG3FkunDWKGfMYjKuhFXko9CVzqxm8jcF+lmtS9Fd89QNdh9XDjnbNg==}
'@floating-ui/[email protected]':
resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==}
@@ -4574,8 +4586,8 @@ packages:
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
- '@graphql-tools/[email protected]':
- resolution: {integrity: sha512-TvltY6eL4DY1Vt66Z8kt9jVmNcI+WkvVPQZrPbMCM3rv2Jw/sWvSwzUBezRuWX0sIckMifYVh23VPcGBUKX/wg==}
+ '@graphql-tools/[email protected]':
+ resolution: {integrity: sha512-2rcZv0aLgNPEhsfXYOiRyCpES76jLuUFpSZJRXivMxjgZWlHTLwz0bBP4QmjQDR+b0DDSe8KgSVAbcSHcB0Z0A==}
engines: {node: '>=16.0.0'}
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
@@ -4671,6 +4683,12 @@ packages:
peerDependencies:
graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
+ '@graphql-tools/[email protected]':
+ resolution: {integrity: sha512-M+04bHvI1SKoug7W2EkwfKjig2mdtgIIlFY8p2jLHmxPNVs5bC/3R+58JrD+7ZXWgPILWTwuqJ9AqTjPlahroA==}
+ engines: {node: '>=16.0.0'}
+ peerDependencies:
+ graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0
+
'@graphql-tools/[email protected]':
resolution: {integrity: sha512-qBga3wo7+GqY+ClGexiyRz9xgy1RWozZryTuGX8usGWPa4wKi/tJS4rKWQQesgB3Fh//SZUCRA5u2nwZaZQw1Q==}
engines: {node: '>=18.0.0'}
@@ -5521,8 +5539,8 @@ packages:
resolution: {integrity: sha512-pJCEwGG7Lfr/+PQp9ZTwKXNeO5wzbfKL7H3MYpCorM4oFBoQrdjnBgEoqG+RjhsvS1FKrDbKux+M1HhlnGWqcA==}
engines: {node: '>=20'}
- '@modelcontextprotocol/[email protected]':
- resolution: {integrity: sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==}
+ '@modelcontextprotocol/[email protected]':
+ resolution: {integrity: sha512-8BviX/hK4Gd2eL1KdTwm0gfl4d3wdoErW0Jd00h6nomUAtk6IJk5vwQJc6kfWtJTzN5OEV/lgIiJKI8fiDGAlA==}
engines: {node: '>=18'}
peerDependencies:
'@cfworker/json-schema': ^4.1.1
@@ -9905,6 +9923,10 @@ packages:
resolution: {integrity: sha512-D+OwTEunoQhVHVToD80dPhfz9xgPLqJyEA3F5jCRM14A2u8tBBQVdZekqfqx6ZAfZ+POT4Hb0dn601UKMsvADw==}
engines: {node: '>=16.0.0'}
+ '@whatwg-node/[email protected]':
+ resolution: {integrity: sha512-/i9CS0Z96o+cPwaYoAyVxAThDiUX1wV3tDmNWPJbn+vtdR+JftuCDg1NGCXBrzIYVDGkJ8uT6ctwmrBOUzOpKQ==}
+ engines: {node: '>=22.15.0'}
+
'@workflow/[email protected]':
resolution: {integrity: sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ==}
@@ -10867,8 +10889,8 @@ packages:
resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==}
engines: {node: '>= 0.6'}
- resolution: {integrity: sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==}
+ resolution: {integrity: sha512-o8vI5RE5A6EVVOd9o41jKp41aJom+QTEO/Bx8MYNjexMo/Bv2WOjUfZr+aL0WnYSgymUy6zeguqLTsIhV0gMvQ==}
engines: {node: '>= 0.8.0'}
@@ -11581,8 +11603,8 @@ packages:
resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}
engines: {node: '>= 4'}
- resolution: {integrity: sha512-2vmYIoqjze2d+kakP8S/nS5shfsl587kzwEjcGlTdiksUVgFHnFCsLYDVj/JNqJVOQZGSYBTmuycv0PodwmnMQ==}
+ resolution: {integrity: sha512-sqo+pNp3qRhCIpbgRi1y8Tgk27Bo2Ry7w0dC1NBeNTdZChWjz9Xb/KOoZbRP/R6pQZ80Qw8YhXw13hWWBbMRnQ==}
resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}
@@ -12137,10 +12159,6 @@ packages:
resolution: {integrity: sha512-v0eOBUbiaFojBu2s2NPBfYUoRR9GjcDNvCXVaqEf5vVfpIAh9f8RCo4vXTP8c63QRKCFwoLpMpTdPwwhEKVgzA==}
engines: {node: '>=14.18'}
- resolution: {integrity: sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==}
- engines: {node: '>=18.0.0'}
-
resolution: {integrity: sha512-70QWGkr4snxr0OXLRWsFLeRBIRPuQOvt4s8QYjmUlmlkyTZkRqS7EDVRZtzU3TiyDbXSzaOeF0XUKy8PchzukQ==}
engines: {node: '>=18.0.0'}
@@ -13069,8 +13087,8 @@ packages:
resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==}
- resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==}
+ resolution: {integrity: sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==}
resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}
@@ -13139,10 +13157,6 @@ packages:
resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==}
- engines: {node: '>=0.10.0'}
-
resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==}
engines: {node: '>=0.10.0'}
@@ -13657,9 +13671,6 @@ packages:
resolution: {integrity: sha512-AMlnetc9+CV9asI19zHmrgS/WYsWUwCn2R7RzlbJWD7F9eWYUTGyBmU9o6PxngtLGOiDGPRu+Uc4fhKzbpteZQ==}
- resolution: {integrity: sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==}
-
resolution: {integrity: sha512-XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==}
@@ -15762,10 +15773,6 @@ packages:
resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ==}
- engines: {node: '>=16.20.0'}
-
resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
engines: {node: '>=16.20.0'}
@@ -16129,8 +16136,8 @@ packages:
resolution: {integrity: sha512-7D/qOz/+Y4X/rzSB6jKxKUsQnphO046ei8qxG59mtM3RG3DHgTK81HrxrmoDVINJb8NKT5ZsRbwHvQ6B68Iyhg==}
- resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}
+ resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==}
engines: {node: '>= 0.10'}
@@ -17069,8 +17076,8 @@ packages:
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-w1aiOKwKuRgtwAReIIj89puqg+I7GvX4IbLrvmhXbzQsj1+Zwi4VO3+fa6ZF91TWSjIxoEkKnMeHcLEODK5ZXA==}
+ resolution: {integrity: sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==}
engines: {node: '>= 0.4'}
@@ -17187,8 +17194,8 @@ packages:
resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==}
- resolution: {integrity: sha512-kCZr2V3ch9i00x8zXRhjUNVcjG9ijES5dDudkXvUVCT5QlJNQWElSJdZqyPemffHoLNUYwOcou0Fy+ojN0uHSQ==}
+ resolution: {integrity: sha512-hpd+HLON7HdZXqYchMM/+LaTTbdK0AU3NngIJ4KVyWbY9bfQqdL9cD+4yf6dUoU2Ap4VsU0JkQi6FxAI1B2mXQ==}
engines: {node: '>= 18'}
@@ -17215,8 +17222,8 @@ packages:
resolution: {integrity: sha512-Pdz01AvCAottHTPQGzndktFNdbRA75BgOfeT1hH+AMnJFv8lynkPi42rfeEhpx1saTEI3YNMWxfqu0sFD1G8pw==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
+ resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
engines: {node: '>=0.10.0'}
@@ -17839,10 +17846,6 @@ packages:
resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}
engines: {node: '>= 0.6'}
- resolution: {integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==}
- engines: {node: '>= 0.6'}
-
resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==}
engines: {node: '>= 18'}
@@ -19301,7 +19304,7 @@ snapshots:
picomatch: 4.0.7
retext-smartypants: 6.2.0
shiki: 4.2.0
- smol-toml: 1.8.0
+ smol-toml: 1.9.0
unified: 11.0.5
@@ -20738,7 +20741,7 @@ snapshots:
'@faker-js/[email protected]': {}
- '@fastify/[email protected]': {}
+ '@fastify/[email protected]': {}
'@floating-ui/[email protected]':
dependencies:
@@ -20965,7 +20968,7 @@ snapshots:
listr2: 4.0.5
log-symbols: 4.1.0
micromatch: 4.0.8
- shell-quote: 1.10.0
+ shell-quote: 1.12.0
string-env-interpolation: 1.0.1
ts-log: 2.2.7
tslib: 2.8.1
@@ -21190,9 +21193,9 @@ snapshots:
transitivePeerDependencies:
- '@types/node'
dependencies:
- '@graphql-tools/utils': 10.8.6([email protected])
+ '@graphql-tools/utils': 12.0.3([email protected])
'@types/ws': 8.18.1
graphql: 16.11.0
isomorphic-ws: 5.0.0([email protected])
@@ -21342,7 +21345,7 @@ snapshots:
dependencies:
'@graphql-tools/executor-graphql-ws': 2.0.5([email protected])
'@graphql-tools/executor-http': 1.3.3(@types/[email protected])([email protected])
- '@graphql-tools/executor-legacy-ws': 1.1.17([email protected])
+ '@graphql-tools/executor-legacy-ws': 1.1.37([email protected])
'@graphql-tools/utils': 10.8.6([email protected])
'@graphql-tools/wrap': 10.0.35([email protected])
'@types/ws': 8.18.1
@@ -21369,6 +21372,14 @@ snapshots:
graphql: 16.11.0
tslib: 2.8.1
+ dependencies:
+ '@graphql-typed-document-node/core': 3.2.0([email protected])
+ '@whatwg-node/promise-helpers': 2.0.0
+ cross-inspect: 1.0.1
+ graphql: 16.11.0
+ tslib: 2.8.1
+
dependencies:
'@graphql-tools/delegate': 10.2.17([email protected])
@@ -22243,7 +22254,7 @@ snapshots:
dependencies:
zod: 4.6.5
dependencies:
'@hono/node-server': 1.19.17([email protected])
ajv: 8.18.0
@@ -22252,13 +22263,13 @@ snapshots:
cors: 2.8.5
cross-spawn: 7.0.6
eventsource: 3.0.7
- eventsource-parser: 3.0.6
+ eventsource-parser: 3.0.8
express: 5.2.1([email protected])
express-rate-limit: 8.3.1([email protected]([email protected]))
hono: 4.13.7
- jose: 6.1.3
+ jose: 6.2.9
json-schema-typed: 8.0.2
- pkce-challenge: 5.0.0
+ pkce-challenge: 5.0.1
raw-body: 3.0.2
zod: 3.25.76
zod-to-json-schema: 3.25.1([email protected])
@@ -24357,56 +24368,6 @@ snapshots:
- tsx
- yaml
- dependencies:
- '@babel/core': 7.29.7([email protected])
- '@babel/generator': 7.29.7
- '@babel/parser': 7.29.8
- '@babel/plugin-syntax-jsx': 7.27.1(@babel/[email protected]([email protected]))
- '@babel/preset-typescript': 7.27.1(@babel/[email protected]([email protected]))([email protected])
- '@babel/traverse': 7.29.7([email protected])
- '@babel/types': 7.29.8
- '@remix-run/node-fetch-server': 0.13.0
- arg: 5.0.2
- babel-dead-code-elimination: 1.0.12([email protected])
- chokidar: 4.0.3
- dedent: 1.7.2([email protected])
- es-module-lexer: 1.7.0
- exit-hook: 2.2.1
- isbot: 5.1.36
- jsesc: 3.0.2
- lodash: 4.18.1
- p-map: 7.0.4
- pathe: 1.1.2
- picocolors: 1.1.1
- pkg-types: 2.3.1
- prettier: 3.8.1
- react-refresh: 0.14.2
- semver: 7.8.5
- tinyglobby: 0.2.17
- valibot: 1.4.2([email protected])
- optionalDependencies:
- typescript: 6.0.2
- transitivePeerDependencies:
- - '@types/node'
- - babel-plugin-macros
- - jiti
- - less
- - lightningcss
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - supports-color
- - terser
- - tsx
- - yaml
-
dependencies:
@@ -24422,13 +24383,6 @@ snapshots:
optionalDependencies:
typescript: 6.0.2
- dependencies:
- minimatch: 9.0.7
- optionalDependencies:
- typescript: 6.0.2
-
dependencies:
'@mjackson/node-fetch-server': 0.2.0
@@ -24441,7 +24395,7 @@ snapshots:
'@mjackson/node-fetch-server': 0.2.0
- compression: 1.8.1([email protected])
+ compression: 1.8.2([email protected])
express: 4.22.1([email protected])
get-port: 5.1.1
morgan: 1.12.1([email protected])
@@ -25539,7 +25493,7 @@ snapshots:
'@standard-schema/spec': 1.1.0
dedent: 1.7.2([email protected])
effect: 4.0.0-rc.112
- smol-toml: 1.8.0
+ smol-toml: 1.9.0
transitivePeerDependencies:
- babel-plugin-macros
@@ -25625,7 +25579,7 @@ snapshots:
jiti: 2.7.0
lightningcss: 1.32.0
magic-string: 0.30.21
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
tailwindcss: 4.2.4
'@tailwindcss/[email protected]':
@@ -27160,16 +27114,6 @@ snapshots:
- dependencies:
- '@jridgewell/trace-mapping': 0.3.31
- '@vitest/spy': 5.0.0
- estree-walker: 3.0.3
- magic-string: 1.2.3
- optionalDependencies:
- msw: 2.11.3(@types/[email protected])([email protected])
-
'@vitest/[email protected]':
dependencies:
tinyrainbow: 3.1.1
@@ -27237,7 +27181,7 @@ snapshots:
'@vue/shared': 3.5.35
entities: 7.0.1
estree-walker: 2.0.2
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
dependencies:
@@ -27245,7 +27189,7 @@ snapshots:
'@vue/shared': 3.5.41
entities: 7.0.1
estree-walker: 2.0.2
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
dependencies:
@@ -27267,7 +27211,7 @@ snapshots:
estree-walker: 2.0.2
magic-string: 0.30.21
postcss: 8.5.28
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
dependencies:
@@ -27279,7 +27223,7 @@ snapshots:
estree-walker: 2.0.2
magic-string: 0.30.21
postcss: 8.5.28
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
dependencies:
@@ -27463,7 +27407,7 @@ snapshots:
'@whatwg-node/[email protected]':
dependencies:
- '@fastify/busboy': 3.1.1
+ '@fastify/busboy': 3.2.2
'@whatwg-node/disposablestack': 0.0.6
'@whatwg-node/promise-helpers': 1.3.1
tslib: 2.8.1
@@ -27472,6 +27416,10 @@ snapshots:
dependencies:
tslib: 2.8.1
+ '@whatwg-node/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+
'@workflow/[email protected]': {}
'@xobotyi/[email protected]': {}
@@ -27867,7 +27815,7 @@ snapshots:
get-tsconfig: 5.0.0-beta.4
github-slugger: 2.0.0
html-escaper: 3.0.3
- http-cache-semantics: 4.2.0
+ http-cache-semantics: 4.3.0
js-yaml: 4.3.2
jsonc-parser: 3.3.1
magic-string: 1.1.0
@@ -27882,7 +27830,7 @@ snapshots:
picomatch: 4.0.5
semver: 7.8.5
shiki: 4.2.0
- smol-toml: 1.8.0
+ smol-toml: 1.9.0
svgo: 4.1.0
tinyclip: 0.1.15
tinyexec: 1.2.4
@@ -28613,11 +28561,12 @@ snapshots:
dependencies:
mime-db: 1.54.0
dependencies:
bytes: 3.1.2
compressible: 2.0.18
debug: 2.6.9([email protected])
+ destroy: 1.2.0
negotiator: 0.6.4
on-headers: 1.1.0
safe-buffer: 5.2.1
@@ -28864,12 +28813,12 @@ snapshots:
dependencies:
mdn-data: 2.0.28
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
dependencies:
mdn-data: 2.12.2
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
@@ -29334,7 +29283,7 @@ snapshots:
dependencies:
domelementtype: 2.3.0
optionalDependencies:
'@types/trusted-types': 2.0.7
@@ -30054,8 +30003,6 @@ snapshots:
-
@@ -30148,7 +30095,7 @@ snapshots:
on-finished: 2.4.1
parseurl: 1.3.3
path-to-regexp: 0.1.13
- proxy-addr: 2.0.7
+ proxy-addr: 2.0.8
qs: 6.16.0
range-parser: 1.2.1
safe-buffer: 5.2.1
@@ -30183,14 +30130,14 @@ snapshots:
on-finished: 2.4.1
once: 1.4.0
parseurl: 1.3.3
- proxy-addr: 2.0.7
+ proxy-addr: 2.0.8
qs: 6.16.0
range-parser: 1.2.1
router: 2.2.0([email protected])
send: 1.2.0([email protected])
serve-static: 2.2.1([email protected])
statuses: 2.0.2
- type-is: 2.0.1
+ type-is: 2.1.0
vary: 1.1.2
transitivePeerDependencies:
- supports-color
@@ -31239,7 +31186,7 @@ snapshots:
domutils: 3.2.2
entities: 7.0.1
dependencies:
@@ -31317,10 +31264,6 @@ snapshots:
dependencies:
safer-buffer: 2.1.2
- dependencies:
- safer-buffer: 2.1.2
-
dependencies:
safer-buffer: 2.1.2
@@ -31795,8 +31738,6 @@ snapshots:
-
@@ -31964,7 +31905,7 @@ snapshots:
oxc-parser: 0.143.0
oxc-resolver: 11.24.2
picomatch: 4.0.5
- smol-toml: 1.8.0
+ smol-toml: 1.9.0
strip-json-comments: 5.0.3
tinyglobby: 0.2.17
unbash: 4.0.10
@@ -31984,7 +31925,7 @@ snapshots:
dependencies:
picocolors: 1.1.1
- shell-quote: 1.10.0
+ shell-quote: 1.12.0
@@ -32350,7 +32291,7 @@ snapshots:
dependencies:
'@babel/parser': 7.29.8
'@babel/types': 7.29.8
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
dependencies:
@@ -32360,7 +32301,7 @@ snapshots:
dependencies:
'@npmcli/agent': 2.2.2([email protected])
cacache: 18.0.3
- http-cache-semantics: 4.2.0
+ http-cache-semantics: 4.3.0
is-lambda: 1.0.1
minipass: 7.1.3
minipass-fetch: 3.0.5
@@ -32812,7 +32753,7 @@ snapshots:
d3-sankey: 0.12.3
dagre-d3-es: 7.0.14
dayjs: 1.11.23
- dompurify: 3.4.13
+ dompurify: 3.4.16
es-toolkit: 1.46.1
fastdom: 1.0.12
katex: 0.16.47
@@ -33738,11 +33679,6 @@ snapshots:
react: 19.2.6
- dependencies:
- react: 19.2.6
-
dependencies:
@@ -33838,34 +33774,6 @@ snapshots:
- '@types/node'
- babel-plugin-macros
- dependencies:
- '@next/env': 16.3.6
- '@swc/helpers': 0.5.23
- baseline-browser-mapping: 2.11.13
- caniuse-lite: 1.0.30001809
- postcss: 8.5.28
- react: 19.2.6
- react-dom: 19.2.6([email protected])
- optionalDependencies:
- '@next/swc-darwin-arm64': 16.3.6
- '@next/swc-darwin-x64': 16.3.6
- '@next/swc-linux-arm64-gnu': 16.3.6
- '@next/swc-linux-arm64-musl': 16.3.6
- '@next/swc-linux-x64-gnu': 16.3.6
- '@next/swc-linux-x64-musl': 16.3.6
- '@next/swc-win32-arm64-msvc': 16.3.6
- '@next/swc-win32-x64-msvc': 16.3.6
- '@opentelemetry/api': 1.9.1
- '@playwright/test': 1.59.1
- sass: 1.77.4
- sharp: 0.35.4(@types/[email protected])
- transitivePeerDependencies:
- - '@babel/core'
- - '@types/node'
- - babel-plugin-macros
-
@@ -34111,7 +34019,7 @@ snapshots:
minimatch: 3.1.4
pidtree: 0.3.1
read-pkg: 3.0.0
- shell-quote: 1.10.0
+ shell-quote: 1.12.0
string.prototype.padend: 3.1.5
@@ -34892,8 +34800,6 @@ snapshots:
-
@@ -35098,7 +35004,7 @@ snapshots:
dependencies:
nanoid: 3.3.18
picocolors: 1.1.1
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
@@ -35128,7 +35034,7 @@ snapshots:
'@posthog/core': 1.51.0
'@posthog/types': 1.409.1
core-js: 3.50.0
- dompurify: 3.4.13
+ dompurify: 3.4.16
fflate: 0.4.9
preact: 10.29.8
query-selector-shadow-dom: 1.0.1
@@ -35225,7 +35131,7 @@ snapshots:
dependencies:
forwarded: 0.2.0
ipaddr.js: 1.9.1
@@ -35364,7 +35270,7 @@ snapshots:
dependencies:
bytes: 3.1.2
http-errors: 2.0.1
- iconv-lite: 0.7.0
+ iconv-lite: 0.7.3
unpipe: 1.0.0
@@ -36241,7 +36147,7 @@ snapshots:
dependencies:
chokidar: 3.6.0
immutable: 4.3.9
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
optional: true
@@ -36455,7 +36361,7 @@ snapshots:
'@babel/plugin-transform-typescript': 7.29.7(@babel/[email protected]([email protected]))([email protected])
'@babel/preset-typescript': 7.27.1(@babel/[email protected]([email protected]))([email protected])
'@dotenvx/dotenvx': 1.51.0
- '@modelcontextprotocol/sdk': 1.29.0([email protected])([email protected])
+ '@modelcontextprotocol/sdk': 1.32.0([email protected])([email protected])
'@types/validate-npm-package-name': 4.0.2
browserslist: 4.28.8
cn: 0.2.5
@@ -36599,7 +36505,7 @@ snapshots:
dependencies:
@@ -36758,7 +36664,7 @@ snapshots:
dependencies:
@@ -36793,7 +36699,7 @@ snapshots:
dependencies:
is-plain-obj: 4.1.0
dependencies:
@@ -37419,12 +37325,6 @@ snapshots:
media-typer: 0.3.0
mime-types: 2.1.35
- dependencies:
- content-type: 1.0.5
- media-typer: 1.1.0
- mime-types: 3.0.1
-
dependencies:
content-type: 2.0.0
@@ -38103,27 +38003,6 @@ snapshots:
- tsx
- yaml
- dependencies:
- cac: 6.7.14
- debug: 4.4.3([email protected])
- es-module-lexer: 1.7.0
- pathe: 2.0.3
- transitivePeerDependencies:
- - '@types/node'
- - jiti
- - less
- - lightningcss
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - supports-color
- - terser
- - tsx
- - yaml
-
dependencies:
cac: 7.0.0
@@ -38180,7 +38059,7 @@ snapshots:
exsolve: 1.1.1
magic-string: 0.30.21
pathe: 2.0.3
- source-map-js: 1.2.1
+ source-map-js: 1.2.2
vue: 3.5.41([email protected])
@@ -38202,24 +38081,6 @@ snapshots:
tsx: 4.22.4
yaml: 2.9.0
- dependencies:
- esbuild: 0.28.1
- fdir: 6.5.0([email protected])
- picomatch: 4.0.7
- postcss: 8.5.28
- rollup: 4.60.3
- tinyglobby: 0.2.17
- optionalDependencies:
- '@types/node': 24.19.0
- fsevents: 2.3.3
- jiti: 2.7.0
- lightningcss: 1.33.0
- sass: 1.77.4
- terser: 5.48.0
- tsx: 4.22.4
- yaml: 2.9.0
-
dependencies:
lightningcss: 1.33.0
@@ -38237,23 +38098,6 @@ snapshots:
tsx: 4.22.4
yaml: 2.9.0
- dependencies:
- lightningcss: 1.33.0
- picomatch: 4.0.7
- postcss: 8.5.28
- rolldown: 1.2.9
- tinyglobby: 0.2.17
- optionalDependencies:
- '@types/node': 24.19.0
- esbuild: 0.28.1
- fsevents: 2.3.3
- jiti: 2.7.0
- sass: 1.77.4
- terser: 5.48.0
- tsx: 4.22.4
- yaml: 2.9.0
-
optionalDependencies:
@@ -38336,32 +38180,6 @@ snapshots:
transitivePeerDependencies:
- msw
- dependencies:
- '@types/chai': 5.2.2
- chai: 6.2.2
- es-module-lexer: 2.3.2
- expect-type: 1.4.0
- magic-string: 1.2.3
- obug: 2.1.4
- picomatch: 4.0.7
- std-env: 4.2.0
- tinybench: 6.1.4
- tinyexec: 1.3.0
- tinyglobby: 0.2.17
- why-is-node-running: 2.3.0
- optionalDependencies:
- '@opentelemetry/api': 1.9.1
- '@types/node': 22.13.14
- '@vitest/coverage-v8': 5.0.0([email protected])
- '@vitest/ui': 5.0.0([email protected])
- happy-dom: 20.14.5
- jsdom: 28.1.0(@noble/[email protected])([email protected])
- transitivePeerDependencies:
- - msw
-
diff --git a/scripts/fix-audit-vulnerability.ts b/scripts/fix-audit-vulnerability.ts
index 63ccb8746b5..6bfd77fd84a 100644
--- a/scripts/fix-audit-vulnerability.ts
+++ b/scripts/fix-audit-vulnerability.ts
@@ -1,6 +1,7 @@
import { execSync } from 'node:child_process'
import * as fs from 'node:fs'
import * as readline from 'node:readline'
+
import { bumpPackage, compareSemver, LOCKFILE_PATH } from './bump-package'
interface Advisory {
@@ -33,6 +34,18 @@ interface VulnerableModule {
allPaths: string[]
}
+const USAGE = `Usage: pnpm tsx scripts/fix-audit-vulnerability.ts [dependency] [--json] [--help]
+
+ (no args) List patchable vulnerabilities and pick one interactively.
+ <dependency> Fix that dependency non-interactively (e.g. braces, @scope/pkg).
+ --json Machine-readable mode. Prints a single JSON object to stdout
+ (progress logs go to stderr). Never prompts: without a
+ dependency it only lists vulnerabilities.
+
+JSON "status" values: listed | fixed | not_vulnerable | still_vulnerable | error
+Exit code is 0 for listed/fixed/not_vulnerable and 1 otherwise. Fixing modifies
+pnpm-lock.yaml only (reverted on failure); commit the result yourself.`
+
const SEVERITY_ORDER = ['critical', 'high', 'moderate', 'low']
function runAudit(): AuditOutput {
@@ -155,33 +168,59 @@ function promptSelection(modules: VulnerableModule[]): Promise<VulnerableModule>
})
}
-async function main(): Promise<void> {
- console.log('Running pnpm audit...')
- const auditResult = runAudit()
-
- const modules = groupAdvisories(auditResult.advisories)
-
- if (modules.length === 0) {
- console.log('No patchable vulnerabilities found.')
- process.exit(0)
+function toJsonModule(m: VulnerableModule) {
+ return {
+ name: m.module_name,
+ severity: m.highestSeverity,
+ targetVersion: m.overrideVersion,
+ advisories: m.advisories.map((a) => ({
+ id: a.id,
+ title: a.title,
+ severity: a.severity,
+ vulnerableVersions: a.vulnerable_versions,
+ patchedVersions: a.patched_versions,
+ })),
+ paths: m.allPaths.map((p) => p.replace(/__/g, '/')),
}
+}
- displayVulnerabilities(modules)
-
- const selected = await promptSelection(modules)
+type Result =
+ | { status: 'listed'; vulnerabilities: ReturnType<typeof toJsonModule>[] }
+ | {
+ status: 'fixed'
+ dependency: string
+ targetVersion: string
+ previousVersion: string | null
+ finalVersion: string | null
+ }
+ | { status: 'not_vulnerable'; dependency: string; message: string }
+ | { status: 'still_vulnerable'; dependency: string; targetVersion: string; message: string }
+ | { status: 'error'; dependency?: string; message: string }
+async function fixModule(selected: VulnerableModule): Promise<Result> {
// Snapshot lockfile to revert if the audit verify step fails
const originalLockfile = fs.readFileSync(LOCKFILE_PATH, 'utf-8')
+ let bump
try {
- await bumpPackage(selected.module_name, selected.overrideVersion)
+ bump = await bumpPackage(selected.module_name, selected.overrideVersion)
} catch (error: any) {
- console.error(error.message ?? error)
- process.exit(1)
+ fs.writeFileSync(LOCKFILE_PATH, originalLockfile, 'utf-8')
+ return {
+ status: 'error',
+ dependency: selected.module_name,
+ message: String(error.message ?? error),
+ }
}
console.log('\nRunning pnpm audit to verify fix without override...')
- const verifyResult = runAudit()
+ let verifyResult: AuditOutput
+ try {
+ verifyResult = runAudit()
+ } catch (error) {
+ fs.writeFileSync(LOCKFILE_PATH, originalLockfile, 'utf-8')
+ throw error
+ }
const stillVulnerable = Object.values(verifyResult.advisories).some(
(adv) => adv.module_name === selected.module_name
@@ -191,19 +230,88 @@ async function main(): Promise<void> {
console.log('\nReverting pnpm-lock.yaml...')
fs.writeFileSync(LOCKFILE_PATH, originalLockfile, 'utf-8')
console.log('Reverted to original state.')
- console.error(
- `\nERROR: Vulnerability for "${selected.module_name}" still present even with override.`
- )
- console.error('Consider using scoped overrides or updating the parent dependency.')
- process.exit(1)
+ return {
+ status: 'still_vulnerable',
+ dependency: selected.module_name,
+ targetVersion: selected.overrideVersion,
+ message:
+ 'Vulnerability still present even with override. Consider using scoped overrides or updating the parent dependency.',
+ }
}
console.log(
`\nSUCCESS: Vulnerability for "${selected.module_name}" resolved without needing a permanent override.`
)
+ return {
+ status: 'fixed',
+ dependency: selected.module_name,
+ targetVersion: selected.overrideVersion,
+ previousVersion: bump.previousVersion,
+ finalVersion: bump.finalVersion,
+ }
+}
+
+async function run(dependency: string | undefined, json: boolean): Promise<Result> {
+ console.log('Running pnpm audit...')
+ const modules = groupAdvisories(runAudit().advisories)
+
+ if (dependency) {
+ const selected = modules.find((m) => m.module_name === dependency)
+ if (!selected) {
+ return {
+ status: 'not_vulnerable',
+ dependency,
+ message: `No patchable vulnerability found for "${dependency}".`,
+ }
+ }
+ return fixModule(selected)
+ }
+
+ if (json || modules.length === 0 || !process.stdin.isTTY) {
+ if (!json) displayVulnerabilities(modules)
+ if (modules.length === 0) console.log('No patchable vulnerabilities found.')
+ return { status: 'listed', vulnerabilities: modules.map(toJsonModule) }
+ }
+
+ displayVulnerabilities(modules)
+ return fixModule(await promptSelection(modules))
+}
+
+async function main(): Promise<void> {
+ const args = process.argv.slice(2)
+ if (args.includes('--help') || args.includes('-h')) {
+ console.log(USAGE)
+ return
+ }
+
+ const json = args.includes('--json')
+ const positional = args.filter((a) => !a.startsWith('-'))
+ const unknown = args.filter((a) => a.startsWith('-') && a !== '--json')
+
+ // In JSON mode stdout is reserved for the final result; route progress logs to stderr.
+ if (json) console.log = (...a: unknown[]) => console.error(...a)
+
+ let result: Result
+ if (unknown.length > 0 || positional.length > 1) {
+ result = {
+ status: 'error',
+ message: `Invalid arguments: ${args.join(' ')}\n${USAGE}`,
+ }
+ } else {
+ try {
+ result = await run(positional[0], json)
+ } catch (error: any) {
+ result = { status: 'error', message: String(error.message ?? error) }
+ }
+ }
+
+ if (json) {
+ process.stdout.write(JSON.stringify(result, null, 2) + '\n')
+ } else if (result.status !== 'listed' && result.status !== 'fixed') {
+ console.error(`\nERROR: ${'message' in result ? result.message : result.status}`)
+ }
+
+ process.exit(['listed', 'fixed', 'not_vulnerable'].includes(result.status) ? 0 : 1)
}
-main().catch((error) => {
- console.error('Fatal error:', error)
- process.exit(1)
-})
+main()