The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Bump vulnerable dependencies (#43148)
Ivan Vasilovb03866f02361
diff --git a/.prettierignore b/.prettierignoreindex e65459c8c02..e0cec2dda80 100644--- a/.prettierignore+++ b/.prettierignore@@ -1,7 +1,7 @@.expo.nextnode_modules-package-lock.json+pnpm-lock.yamldocker*apps/**/out# prettier-plugin-sql-cst only supports sqlite syntaxdiff --git a/apps/www/package.json b/apps/www/package.jsonindex 7affd1ea62b..be6323d3a36 100644--- a/apps/www/package.json+++ b/apps/www/package.json@@ -83,7 +83,7 @@"remark": "^15.0.1","remark-gfm": "^4.0.0","shared-data": "workspace:*",- "swiper": "^11.0.7",+ "swiper": "^12.1.2","typed.js": "^2.0.16","typescript": "catalog:","ui": "workspace:*",diff --git a/package.json b/package.jsonindex 6719ded886e..dfc41e721ae 100644--- a/package.json+++ b/package.json@@ -49,7 +49,7 @@"prettier-plugin-sql-cst": "^0.11.0","rimraf": "^6.0.0","sass": "^1.72.0",- "supabase": "^2.65.6",+ "supabase": "^2.76.10","supports-color": "^8.0.0","tailwindcss": "catalog:","tsx": "catalog:",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 8fc7135cb2a..c425f8e4bb8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -73,8 +73,12 @@ overrides:lodash: ^4.17.23payload>undici: ^7.18.2refractor>prismjs: ^1.30.0- tar: ^7.5.7+ cacache>tar: ^7.5.8+ node-gyp>tar: ^7.5.8+ '@mapbox/node-pre-gyp>tar': ^7.5.8tmp: ^0.2.4+ '@aws-sdk/core>fast-xml-parser': ^5.3.5+ openapi-sampler>fast-xml-parser: ^5.3.5importers:@@ -105,8 +109,8 @@ importers:specifier: ^1.72.0version: 1.72.0supabase:- specifier: ^2.65.6- version: 2.67.1([email protected])+ specifier: ^2.76.10+ version: 2.76.14([email protected])supports-color:specifier: ^8.0.0version: 8.1.1@@ -208,7 +212,7 @@ importers:version: 1.2.0remark-gfm:specifier: ^4.0.0- version: 4.0.0([email protected])+ version: 4.0.1([email protected])sonner:specifier: ^1.5.0@@ -467,7 +471,7 @@ importers:rehype-katex:specifier: ^7.0.0- version: 7.0.0+ version: 7.0.1rehype-slug:specifier: ^5.1.0version: 5.1.0@@ -796,7 +800,7 @@ importers:version: 0.10.1'@modelcontextprotocol/sdk':specifier: ^1.25.2+ version: 1.27.0([email protected])([email protected])'@monaco-editor/react':specifier: ^4.6.0@@ -832,10 +836,10 @@ importers:version: 2.98.0'@supabase/mcp-server-supabase':specifier: ^0.6.3- version: 0.6.3(@modelcontextprotocol/[email protected]([email protected])([email protected])([email protected]))([email protected])+ version: 0.6.3(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])'@supabase/mcp-utils':specifier: ^0.3.2- version: 0.3.2(@modelcontextprotocol/[email protected]([email protected])([email protected])([email protected]))([email protected])+ version: 0.3.2(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])'@supabase/pg-meta':specifier: workspace:*version: link:../../packages/pg-meta@@ -1379,7 +1383,7 @@ importers:version: 5.83.0([email protected])axios:specifier: ^1.12.0- version: 1.12.2+ version: 1.13.5class-variance-authority:specifier: '*'version: 0.6.1@@ -1460,7 +1464,7 @@ importers:version: 1.2.0remark-gfm:specifier: ^4.0.0- version: 4.0.0([email protected])+ version: 4.0.1([email protected])sonner:specifier: ^1.5.0@@ -1748,8 +1752,8 @@ importers:specifier: workspace:*version: link:../../packages/shared-dataswiper:- specifier: ^11.0.7- version: 11.0.7+ specifier: ^12.1.2+ version: 12.1.2typed.js:specifier: ^2.0.16version: 2.0.16@@ -1975,7 +1979,7 @@ importers:version: 15.2.0([email protected])([email protected])mdast-util-from-markdown:specifier: ^2.0.0- version: 2.0.0([email protected])+ version: 2.0.2([email protected])sql-formatter:specifier: ^15.0.0version: 15.4.9@@ -2675,7 +2679,7 @@ importers:version: 15.0.1([email protected])remark-gfm:specifier: ^4.0.0- version: 4.0.0([email protected])+ version: 4.0.1([email protected])scroll-into-view-if-needed:specifier: ^3.1.0version: 3.1.0@@ -4441,8 +4445,8 @@ packages:resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==}engines: {node: 20 || >=22}- '@isaacs/[email protected]':- resolution: {integrity: sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==}+ '@isaacs/[email protected]':+ resolution: {integrity: sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==}engines: {node: 20 || >=22}'@isaacs/[email protected]':@@ -4606,8 +4610,8 @@ packages:'@mjackson/[email protected]':resolution: {integrity: sha512-EMlH1e30yzmTpGLQjlFmaDAjyOeZhng1/XCd7DExR8PNAnG/G1tyruZxEoUe11ClnwGhGrtsdnyyUx1frSzjng==}- '@modelcontextprotocol/[email protected]':- resolution: {integrity: sha512-vsAMBMERybvYgKbg/l4L1rhS7VXV1c0CtyJg72vwxONVX0l4ZfKVAnZEWTQixJGTzKnELjQ59e4NbdFDALRiAQ==}+ '@modelcontextprotocol/[email protected]':+ resolution: {integrity: sha512-qOdO524oPMkUsOJTrsH9vz/HN3B5pKyW+9zIW51A9kDMVe7ON70drz1ouoyoyOcfzc+oxhkQ6jWmbyKnlWmYqA==}engines: {node: '>=18'}peerDependencies:'@cfworker/json-schema': ^4.1.1@@ -9751,8 +9755,8 @@ packages:resolution: {integrity: sha512-Xm7bpRXnDSX2YE2YFfBk2FnF0ep6tmG7xPh8iHee8MIcrgq762Nkce856dYtJYLkuIoYZvGfTs/PbZhideTcEg==}engines: {node: '>=4'}- resolution: {integrity: sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==}+ resolution: {integrity: sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==}resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}@@ -11729,18 +11733,18 @@ packages:resolution: {integrity: sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==}- resolution: {integrity: sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==}+ resolution: {integrity: sha512-PCZEIEIxqwhzw4KF0n7QF4QqruVTcF73O5kFKUnGOyjbCCgizBBiFaYpd/fnBLUMPw/BWw9OsiN7GgrNYr7j6g==}engines: {node: '>= 16'}peerDependencies:- express: ^4.11 || 5 || ^5.0.0-beta.1+ express: '>= 4.11'resolution: {integrity: sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==}engines: {node: '>= 0.10.0'}- resolution: {integrity: sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==}+ resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==}engines: {node: '>= 18'}@@ -11813,12 +11817,8 @@ packages:resolution: {integrity: sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==}- resolution: {integrity: sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==}- hasBin: true-- resolution: {integrity: sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig==}+ resolution: {integrity: sha512-QNI3sAvSvaOiaMl8FYU4trnEzCwiRr8XMWgAHzlrWpTSj+QaCSvOf1h82OEP1s4hiAXhnbXSyFWCf4ldZzZRVA==}hasBin: true@@ -11939,8 +11939,8 @@ packages:resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}- resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==}+ resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==}engines: {node: '>=4.0'}peerDependencies:debug: '*'@@ -11970,6 +11970,10 @@ packages:resolution: {integrity: sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==}engines: {node: '>= 6'}+ resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==}+ engines: {node: '>= 6'}+resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==}engines: {node: '>=0.4.x'}@@ -12476,9 +12480,6 @@ packages:resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}- resolution: {integrity: sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==}-resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==}@@ -12790,6 +12791,10 @@ packages:resolution: {integrity: sha512-NUcA93i1lukyXU+riqEyPtSEkyFq8tX90uL659J+qpCZ3rEdViB/APC58oAhIh3+bJln2hzdlZbBZsGNrlsR8g==}engines: {node: '>=12.22.0'}+ resolution: {integrity: sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==}+ engines: {node: '>= 12'}+resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==}engines: {node: '>= 12'}@@ -13713,8 +13718,8 @@ packages:resolution: {integrity: sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==}hasBin: true- resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}+ resolution: {integrity: sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==}hasBin: true@@ -13761,9 +13766,6 @@ packages:resolution: {integrity: sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==}- resolution: {integrity: sha512-n7MTOr/z+8NAX/wmhhDji8O3bRvPTV/U0oTCaZJkjhPSKTPhS3xufVhKGF8s1pJ7Ox4QgoIU7KHseh09S+9rTA==}-resolution: {integrity: sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==}@@ -15098,9 +15100,6 @@ packages:resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}- resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==}-resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}@@ -15783,8 +15782,12 @@ packages:resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}engines: {node: '>=6'}- resolution: {integrity: sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==}+ resolution: {integrity: sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==}+ engines: {node: '>=0.6'}++ resolution: {integrity: sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==}engines: {node: '>=0.6'}@@ -16273,9 +16276,6 @@ packages:resolution: {integrity: sha512-58RSgd3BAYW/hULy6qvrLBIRe8qe5PElwEpRjrLilvhJ3N+Y6ptKAmy1CLIIyoMz7CMI30GqENhNXksJd5hGDg==}- resolution: {integrity: sha512-h8FPkGE00r2XKU+/acgqwWUlyzve1IiOKwsEkg4pDL3k48PiE0Pt+/uLtVHDVkN1yA4iurZN6UES8ivHVEQV6Q==}-resolution: {integrity: sha512-OiM2wrZ/wuhKkigASodFoo8wimG3H12LWQaH8qSPVJn9apWKFSH3YOCtbKpBorTVw/eI7cuT21XBbvwEswbIOA==}@@ -16314,9 +16314,6 @@ packages:resolution: {integrity: sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig==}- resolution: {integrity: sha512-U92vJgBPkbw4Zfu/IiW2oTZLSL3Zpv+uI7My2eq8JxKgqraFdU8YUGicEJCEgSbeaG+QDFqIcwwfMTOEelPxuA==}-resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}@@ -17165,8 +17162,8 @@ packages:resolution: {integrity: sha512-aT2BU9KkizY9SATf14WhhYVv2uOapBWX0OFWF4xvcj1mPaNotlSc2CsxpS4DS46ZueSppmCF5BX1sNYBtwBvfw==}engines: {node: '>=12.*'}- resolution: {integrity: sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==}+ resolution: {integrity: sha512-l63NF9y/cLROq/yqKXSLtcMeeyOfnSQlfMSlzFt/K73oIaD8DGaQWd7Z34X9GPiKqP5rbSh84Hl4bOlLcjiSrQ==}resolution: {integrity: sha512-FL8EeKFFyNQv5cMnXI31CIMCsFarSVI2bF0U0ImeNE3g/F1IvJQyqzOXxPBRXiwQfyBTlbNe88jh1jFW0O/jiQ==}@@ -17232,8 +17229,8 @@ packages:resolution: {integrity: sha512-TDQg6Nh7e2DaLmMjqpJt7Wwh2Au5loVPH2gwKMkD89e3pb5F/zMQGWt22asEXme031jEmhjazixFH0lwMgbRJA==}engines: {node: '>=18.0.0'}- resolution: {integrity: sha512-d/trGytTjB/Hi625zHh2RFFttjLOkSdRTsY/N1pjxoAfG0blDiHKqPwu12VJYitg4nzgjfhjnD3pLyfU0ko5vg==}+ resolution: {integrity: sha512-2XmYs8+A4WXd+w/OND9u9qbSTnGdLCuddnii01H1LkmgwcZ9krXwxElE+YYmzhsEKCUHv5wVjAf5HTUwQ4PnVA==}engines: {npm: '>=8'}hasBin: true@@ -17280,8 +17277,8 @@ packages:resolution: {integrity: sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==}- resolution: {integrity: sha512-cDfglW1B6uSmB6eB6pNmzDTNLmZtu5bWWa1vak0RU7fOI9qHjMzl7gVBvYSl34b0RU2N11HxxETJqQ5LeqI1cA==}+ resolution: {integrity: sha512-4gILrI3vXZqoZh71I1PALqukCFgk+gpOwe1tOvz5uE9kHtl2gTDzmYflYCwWvR4LOvCrJi6UEEU+gnuW5BtkgQ==}engines: {node: '>= 4.7.0'}@@ -17329,10 +17326,9 @@ packages:resolution: {integrity: sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==}- resolution: {integrity: sha512-fov56fJiRuThVFXD6o6/Q354S7pnWMJIVlDBYijsTNx6jKSE4pvrDTs6lUnmGvNyfJwFQQwWy3owKz1ucIhveQ==}+ resolution: {integrity: sha512-BTLcK0xsDh2+PUe9F6c2TlRp4zOOBMTkoQHQIWSIzI0R7KG46uEwq4OPk2W7bZcprBMsuaeFsqwYr7pjh6CuHg==}engines: {node: '>=18'}- deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]resolution: {integrity: sha512-2qSN6TnomHgVLtk+htSWbaYs4Rd2MH/RU7VpHTy6MBstyNyWbM4yKd1DCYpE3fDg8dmGWojXCngNi/MHCzGuAA==}@@ -18679,6 +18675,11 @@ packages:peerDependencies:zod: ^3.25 || ^4+ resolution: {integrity: sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==}+ peerDependencies:+ zod: ^3.25 || ^4+resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}@@ -19046,7 +19047,7 @@ snapshots:'@smithy/util-body-length-browser': 4.0.0'@smithy/util-middleware': 4.2.8'@smithy/util-utf8': 4.0.0- fast-xml-parser: 4.4.1+ fast-xml-parser: 5.3.6tslib: 2.8.1'@aws-sdk/[email protected]':@@ -19064,7 +19065,7 @@ snapshots:'@smithy/util-body-length-browser': 4.0.0'@smithy/util-middleware': 4.2.8'@smithy/util-utf8': 4.0.0- fast-xml-parser: 4.4.1+ fast-xml-parser: 5.3.6tslib: 2.8.1'@aws-sdk/[email protected]':@@ -20410,7 +20411,7 @@ snapshots:get-value: 3.0.1graphql: 16.11.0graphql-language-service: 5.3.1([email protected])- markdown-it: 14.1.0+ markdown-it: 14.1.1react: 18.3.1react-compiler-runtime: 19.1.0-rc.1([email protected])react-dom: 18.3.1([email protected])@@ -21267,7 +21268,7 @@ snapshots:'@isaacs/[email protected]': {}- '@isaacs/[email protected]':+ '@isaacs/[email protected]':dependencies:'@isaacs/balanced-match': 4.0.1@@ -21405,7 +21406,7 @@ snapshots:npmlog: 5.0.1rimraf: 3.0.2semver: 7.7.3- tar: 7.5.7+ tar: 7.5.9transitivePeerDependencies:- encoding- supports-color@@ -21418,7 +21419,7 @@ snapshots:node-fetch: 2.7.0([email protected])nopt: 8.1.0semver: 7.7.3- tar: 7.5.7+ tar: 7.5.9transitivePeerDependencies:- encoding- supports-color@@ -21496,7 +21497,7 @@ snapshots:'@mjackson/[email protected]': {}- '@modelcontextprotocol/[email protected]([email protected])([email protected])([email protected])':dependencies:'@hono/node-server': 1.19.9([email protected])ajv: 8.17.1@@ -21506,16 +21507,16 @@ snapshots:cross-spawn: 7.0.6eventsource: 3.0.7eventsource-parser: 3.0.6- express: 5.1.0([email protected])- express-rate-limit: 7.5.0([email protected]([email protected]))+ express: 5.2.1([email protected])+ express-rate-limit: 8.2.1([email protected]([email protected]))+ hono: 4.11.7jose: 6.1.3json-schema-typed: 8.0.2pkce-challenge: 5.0.0raw-body: 3.0.2zod: 3.25.76- zod-to-json-schema: 3.25.0([email protected])+ zod-to-json-schema: 3.25.1([email protected])transitivePeerDependencies:- - hono- supports-color'@monaco-editor/[email protected]([email protected])':@@ -24757,7 +24758,7 @@ snapshots:concat-stream: 2.0.0cookie: 0.7.2dotenv: 16.4.5- form-data: 4.0.4+ form-data: 4.0.5jest-diff: 29.7.0jest-matcher-utils: 29.7.0js-yaml: 4.1.1@@ -25550,20 +25551,20 @@ snapshots:dependencies:tslib: 2.8.1- '@supabase/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected])([email protected]))([email protected])':+ '@supabase/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])':dependencies:'@mjackson/multipart-parser': 0.10.1- '@supabase/mcp-utils': 0.3.2(@modelcontextprotocol/[email protected]([email protected])([email protected])([email protected]))([email protected])+ '@modelcontextprotocol/sdk': 1.27.0([email protected])([email protected])+ '@supabase/mcp-utils': 0.3.2(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])common-tags: 1.8.2gqlmin: 0.3.1graphql: 16.11.0openapi-fetch: 0.13.8zod: 3.25.76- '@supabase/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected])([email protected]))([email protected])':+ '@supabase/[email protected](@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])':dependencies:+ '@modelcontextprotocol/sdk': 1.27.0([email protected])([email protected])zod: 3.25.76@@ -26365,7 +26366,7 @@ snapshots:'@types/[email protected]':dependencies:'@types/node': 22.13.14- form-data: 4.0.4+ form-data: 4.0.5'@types/[email protected]':dependencies:@@ -27447,10 +27448,10 @@ snapshots:dependencies:- follow-redirects: 1.15.9- form-data: 4.0.4+ follow-redirects: 1.15.11+ form-data: 4.0.5proxy-from-env: 1.1.0transitivePeerDependencies:- debug@@ -27548,7 +27549,7 @@ snapshots:http-errors: 2.0.1iconv-lite: 0.4.24on-finished: 2.4.1- qs: 6.14.1+ qs: 6.14.2raw-body: 2.5.3type-is: 1.6.18unpipe: 1.0.0@@ -27563,7 +27564,7 @@ snapshots:http-errors: 2.0.1iconv-lite: 0.7.0on-finished: 2.4.1- qs: 6.14.1+ qs: 6.15.0raw-body: 3.0.2type-is: 2.0.1transitivePeerDependencies:@@ -27697,7 +27698,7 @@ snapshots:promise-inflight: 1.0.1rimraf: 3.0.2ssri: 8.0.1- tar: 7.5.7+ tar: 7.5.9unique-filename: 1.1.1transitivePeerDependencies:- bluebird@@ -27714,7 +27715,7 @@ snapshots:minipass-pipeline: 1.2.4p-map: 4.0.0ssri: 10.0.6- tar: 7.5.7+ tar: 7.5.9unique-filename: 3.0.0@@ -29644,9 +29645,10 @@ snapshots:dependencies:- express: 5.1.0([email protected])+ express: 5.2.1([email protected])+ ip-address: 10.0.1dependencies:@@ -29671,7 +29673,7 @@ snapshots:parseurl: 1.3.3path-to-regexp: 0.1.12proxy-addr: 2.0.7- qs: 6.14.1+ qs: 6.14.2range-parser: 1.2.1safe-buffer: 5.2.1send: 0.19.0([email protected])@@ -29684,7 +29686,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:accepts: 2.0.0body-parser: 2.2.1([email protected])@@ -29693,6 +29695,7 @@ snapshots:cookie: 0.7.2cookie-signature: 1.2.2debug: 4.4.3([email protected])+ depd: 2.0.0encodeurl: 2.0.0escape-html: 1.0.3etag: 1.8.1@@ -29705,7 +29708,7 @@ snapshots:once: 1.4.0parseurl: 1.3.3proxy-addr: 2.0.7- qs: 6.14.1+ qs: 6.15.0range-parser: 1.2.1router: 2.2.0([email protected])send: 1.2.0([email protected])@@ -29784,13 +29787,9 @@ snapshots:dependencies:- strnum: 1.1.2-- dependencies:- strnum: 1.1.2+ strnum: 2.1.2@@ -29922,7 +29921,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -29947,6 +29946,14 @@ snapshots:hasown: 2.0.2mime-types: 2.1.35+ dependencies:+ asynckit: 0.4.0+ combined-stream: 1.0.8+ es-set-tostringtag: 2.1.0+ hasown: 2.0.2+ mime-types: 2.1.35+@@ -30489,7 +30496,7 @@ snapshots:'@types/hast': 3.0.4devlop: 1.1.0hast-util-from-parse5: 8.0.1- parse5: 7.2.1+ parse5: 7.3.0vfile: 6.0.3vfile-message: 4.0.2@@ -30533,7 +30540,7 @@ snapshots:hast-util-to-parse5: 8.0.0html-void-elements: 3.0.0mdast-util-to-hast: 13.2.1- parse5: 7.2.1+ parse5: 7.3.0unist-util-position: 5.0.0unist-util-visit: 5.1.0vfile: 6.0.3@@ -30575,26 +30582,6 @@ snapshots:stringify-entities: 4.0.3zwitch: 2.0.4- dependencies:- '@types/estree': 1.0.5- '@types/hast': 3.0.4- '@types/unist': 3.0.3- comma-separated-tokens: 2.0.3- devlop: 1.1.0- estree-util-is-identifier-name: 3.0.0- hast-util-whitespace: 3.0.0- mdast-util-mdx-expression: 2.0.0([email protected])- mdast-util-mdx-jsx: 3.1.3([email protected])- mdast-util-mdxjs-esm: 2.0.1([email protected])- property-information: 6.3.0- space-separated-tokens: 2.0.2- style-to-object: 1.0.8- unist-util-position: 5.0.0- vfile-message: 4.0.2- transitivePeerDependencies:- - supports-color-dependencies:'@types/estree': 1.0.5@@ -30961,6 +30948,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+dependencies:jsbn: 1.1.0@@ -31382,7 +31371,7 @@ snapshots:decimal.js: 10.5.0domexception: 4.0.0escodegen: 2.1.0- form-data: 4.0.4+ form-data: 4.0.5html-encoding-sniffer: 3.0.0http-proxy-agent: 5.0.0([email protected])https-proxy-agent: 5.0.1([email protected])@@ -31894,7 +31883,7 @@ snapshots:mdurl: 1.0.1uc.micro: 1.0.6dependencies:argparse: 2.0.1entities: 4.5.0@@ -31969,23 +31958,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/mdast': 4.0.4- '@types/unist': 3.0.3- decode-named-character-reference: 1.0.2- devlop: 1.1.0- mdast-util-to-string: 4.0.0- micromark: 4.0.0([email protected])- micromark-util-decode-numeric-character-reference: 2.0.1- micromark-util-decode-string: 2.0.0- micromark-util-normalize-identifier: 2.0.0- micromark-util-symbol: 2.0.1- micromark-util-types: 2.0.0- unist-util-stringify-position: 4.0.0- transitivePeerDependencies:- - supports-color-dependencies:'@types/mdast': 4.0.4@@ -32962,7 +32934,7 @@ snapshots:dependencies:- '@isaacs/brace-expansion': 5.0.0+ '@isaacs/brace-expansion': 5.0.1dependencies:@@ -33458,7 +33430,7 @@ snapshots:nopt: 7.2.1proc-log: 3.0.0semver: 7.7.3- tar: 7.5.7+ tar: 7.5.9which: 4.0.0transitivePeerDependencies:- supports-color@@ -33473,7 +33445,7 @@ snapshots:npmlog: 6.0.2rimraf: 3.0.2semver: 7.7.3- tar: 7.5.7+ tar: 7.5.9which: 2.0.2transitivePeerDependencies:- bluebird@@ -33946,7 +33918,7 @@ snapshots:dependencies:'@types/json-schema': 7.0.15- fast-xml-parser: 4.5.3+ fast-xml-parser: 5.3.6json-pointer: 0.6.2@@ -34194,10 +34166,6 @@ snapshots:dependencies:entities: 4.5.0- dependencies:- entities: 4.5.0-dependencies:entities: 6.0.1@@ -34822,7 +34790,11 @@ snapshots:+ dependencies:+ side-channel: 1.1.0+dependencies:side-channel: 1.1.0@@ -35072,7 +35044,7 @@ snapshots:'@types/hast': 3.0.4'@types/react': 18.3.3devlop: 1.1.0- hast-util-to-jsx-runtime: 2.3.0([email protected])+ hast-util-to-jsx-runtime: 2.3.6([email protected])html-url-attributes: 3.0.0mdast-util-to-hast: 13.2.1react: 18.3.1@@ -35453,16 +35425,6 @@ snapshots:- dependencies:- '@types/hast': 3.0.4- '@types/katex': 0.16.7- hast-util-from-html-isomorphic: 2.0.0- hast-util-to-text: 4.0.0- katex: 0.16.21- unist-util-visit-parents: 6.0.1- vfile: 6.0.3-dependencies:'@types/hast': 3.0.4@@ -35548,17 +35510,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@types/mdast': 4.0.4- mdast-util-gfm: 3.0.0([email protected])- micromark-extension-gfm: 3.0.0- remark-parse: 11.0.0([email protected])- remark-stringify: 11.0.0- unified: 11.0.5- transitivePeerDependencies:- - supports-color-dependencies:'@types/mdast': 4.0.4@@ -36058,7 +36009,7 @@ snapshots:'@babel/plugin-transform-typescript': 7.28.0(@babel/[email protected]([email protected]))([email protected])'@dotenvx/dotenvx': 1.51.0+ '@modelcontextprotocol/sdk': 1.27.0([email protected])([email protected])browserslist: 4.26.2commander: 14.0.1cosmiconfig: 9.0.0([email protected])@@ -36086,7 +36037,6 @@ snapshots:- '@cfworker/json-schema'- '@types/node'- babel-plugin-macros- - hono- supports-color- typescript@@ -36655,9 +36605,9 @@ snapshots:dependencies:'@types/node': 22.13.14- qs: 6.14.1+ qs: 6.15.0- [email protected]: {}+ [email protected]: {}@@ -36738,12 +36688,12 @@ snapshots:dependencies:openapi-fetch: 0.6.2dependencies:bin-links: 6.0.0https-proxy-agent: 7.0.6([email protected])node-fetch: 3.3.2- tar: 7.5.7+ tar: 7.5.9transitivePeerDependencies:- supports-color@@ -36804,7 +36754,7 @@ snapshots:dependencies:tslib: 2.8.1- [email protected]: {}+ [email protected]: {}dependencies:@@ -36870,7 +36820,7 @@ snapshots:fast-fifo: 1.3.2streamx: 2.22.0dependencies:'@isaacs/fs-minipass': 4.0.1chownr: 3.0.0@@ -38315,6 +38265,10 @@ snapshots:dependencies:zod: 3.25.76+ dependencies:+ zod: 3.25.76+diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 1f0deece909..05523cbd068 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -59,6 +59,7 @@ minimumReleaseAgeExclude:- lodash- next-mdx-remote- react-resizable-panelsonlyBuiltDependencies:- node-pty@@ -73,5 +74,9 @@ overrides:lodash: 'catalog:'payload>undici: ^7.18.2refractor>prismjs: ^1.30.0- tar: ^7.5.7+ cacache>tar: ^7.5.8+ node-gyp>tar: ^7.5.8+ '@mapbox/node-pre-gyp>tar': ^7.5.8tmp: ^0.2.4+ '@aws-sdk/core>fast-xml-parser': ^5.3.5+ openapi-sampler>fast-xml-parser: ^5.3.5diff --git a/scripts/fix-audit-vulnerability.ts b/scripts/fix-audit-vulnerability.tsnew file mode 100644index 00000000000..6c12a4352dd--- /dev/null+++ b/scripts/fix-audit-vulnerability.ts@@ -0,0 +1,299 @@+import { execSync } from 'node:child_process'+import * as fs from 'node:fs'+import * as path from 'node:path'+import * as readline from 'node:readline'++interface Advisory {+ id: number+ module_name: string+ severity: string+ title: string+ vulnerable_versions: string+ patched_versions: string+ findings: Array<{+ version: string+ paths: string[]+ }>+}++interface AuditOutput {+ advisories: Record<string, Advisory>+ metadata: {+ vulnerabilities: Record<string, number>+ dependencies: number+ totalDependencies: number+ }+}++interface VulnerableModule {+ module_name: string+ advisories: Advisory[]+ highestSeverity: string+ overrideVersion: string+ allPaths: string[]+}++const WORKSPACE_YAML_PATH = path.join(process.cwd(), 'pnpm-workspace.yaml')+const LOCKFILE_PATH = path.join(process.cwd(), 'pnpm-lock.yaml')++const SEVERITY_ORDER = ['critical', 'high', 'moderate', 'low']++function runAudit(): AuditOutput {+ try {+ const stdout = execSync('pnpm audit --json', {+ encoding: 'utf-8',+ stdio: ['pipe', 'pipe', 'pipe'],+ maxBuffer: 10 * 1024 * 1024,+ })+ return JSON.parse(stdout)+ } catch (error: any) {+ // pnpm audit exits with code 1 when vulnerabilities exist+ if (error.stdout) {+ return JSON.parse(error.stdout)+ }+ throw error+ }+}++function parseMinVersion(patchedVersions: string): string | null {+ const match = patchedVersions.match(/>=(\d+\.\d+\.\d+)/)+ return match ? match[1] : null+}++function compareSemver(a: string, b: string): number {+ const pa = a.split('.').map(Number)+ const pb = b.split('.').map(Number)+ for (let i = 0; i < 3; i++) {+ if (pa[i] !== pb[i]) return pa[i] - pb[i]+ }+ return 0+}++function groupAdvisories(advisories: Record<string, Advisory>): VulnerableModule[] {+ const byModule = new Map<string, Advisory[]>()++ for (const adv of Object.values(advisories)) {+ if (adv.patched_versions === '<0.0.0') continue++ const existing = byModule.get(adv.module_name) ?? []+ existing.push(adv)+ byModule.set(adv.module_name, existing)+ }++ const result: VulnerableModule[] = []++ for (const [module_name, advs] of byModule) {+ const allPaths = [...new Set(advs.flatMap((a) => a.findings.flatMap((f) => f.paths)))]++ const versions = advs+ .map((a) => parseMinVersion(a.patched_versions))+ .filter(Boolean) as string[]+ const highestVersion = versions.sort(compareSemver).pop()!+ const overrideVersion = `^${highestVersion}`++ const highestSeverity = advs+ .map((a) => a.severity)+ .sort((a, b) => SEVERITY_ORDER.indexOf(a) - SEVERITY_ORDER.indexOf(b))+ .at(0)!++ result.push({+ module_name,+ advisories: advs,+ highestSeverity,+ overrideVersion,+ allPaths,+ })+ }++ result.sort((a, b) => {+ const sevDiff =+ SEVERITY_ORDER.indexOf(a.highestSeverity) - SEVERITY_ORDER.indexOf(b.highestSeverity)+ if (sevDiff !== 0) return sevDiff+ return a.module_name.localeCompare(b.module_name)+ })++ return result+}++function displayVulnerabilities(modules: VulnerableModule[]): void {+ console.log('\nVulnerable dependencies (patchable):\n')++ const severityColors: Record<string, string> = {+ critical: '\x1b[31m',+ high: '\x1b[33m',+ moderate: '\x1b[36m',+ low: '\x1b[37m',+ }+ const reset = '\x1b[0m'++ for (let i = 0; i < modules.length; i++) {+ const m = modules[i]+ const color = severityColors[m.highestSeverity] ?? reset++ console.log(+ ` ${String(i + 1).padStart(2)}. ${color}[${m.highestSeverity.toUpperCase()}]${reset} ` ++ `${m.module_name} -> ${m.overrideVersion}`+ )++ const maxPaths = 3+ const paths = m.allPaths.slice(0, maxPaths)+ for (const p of paths) {+ console.log(` via ${p.replace(/__/g, '/')}`)+ }+ if (m.allPaths.length > maxPaths) {+ console.log(` ... and ${m.allPaths.length - maxPaths} more`)+ }+ }++ console.log('')+}++function promptSelection(modules: VulnerableModule[]): Promise<VulnerableModule> {+ const rl = readline.createInterface({+ input: process.stdin,+ output: process.stdout,+ })++ return new Promise((resolve, reject) => {+ rl.question(`Select vulnerability to fix (1-${modules.length}): `, (answer) => {+ rl.close()+ const num = parseInt(answer, 10)+ if (isNaN(num) || num < 1 || num > modules.length) {+ reject(new Error(`Invalid selection: ${answer}`))+ return+ }+ resolve(modules[num - 1])+ })+ })+}++function escapeRegex(str: string): string {+ return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')+}++function formatOverrideLine(moduleName: string, version: string): string {+ const key = moduleName.includes('@') ? `'${moduleName}'` : moduleName+ return ` ${key}: ${version}`+}++function addOverride(yamlContent: string, moduleName: string, version: string): string {+ const lines = yamlContent.split('\n')++ const overridesIdx = lines.findIndex((line) => /^overrides:\s*$/.test(line))+ if (overridesIdx === -1) {+ throw new Error('Could not find "overrides:" section in pnpm-workspace.yaml')+ }++ // Find the end of the overrides block (next non-indented, non-empty line)+ let blockEnd = overridesIdx + 1+ while (blockEnd < lines.length) {+ const line = lines[blockEnd]+ if (line === '' || /^\s+/.test(line)) {+ blockEnd+++ } else {+ break+ }+ }++ // Check if this module already has an override+ const existingPattern = new RegExp(`^\\s+['"]?${escapeRegex(moduleName)}['"]?\\s*:`)+ const existingIdx = lines.findIndex(+ (line, idx) => idx > overridesIdx && idx < blockEnd && existingPattern.test(line)+ )++ if (existingIdx !== -1) {+ console.log(`\nWARNING: Override for "${moduleName}" already exists:`)+ console.log(` ${lines[existingIdx].trim()}`)+ console.log(` Replacing with: ${moduleName}: ${version}`)+ lines[existingIdx] = formatOverrideLine(moduleName, version)+ return lines.join('\n')+ }++ // Insert new override at the end of the overrides block+ const newLine = formatOverrideLine(moduleName, version)+ lines.splice(blockEnd, 0, newLine)+ return lines.join('\n')+}++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)+ }++ displayVulnerabilities(modules)++ const selected = await promptSelection(modules)++ // Snapshot original files for revert on failure+ const originalYaml = fs.readFileSync(WORKSPACE_YAML_PATH, 'utf-8')+ const originalLockfile = fs.readFileSync(LOCKFILE_PATH, 'utf-8')++ function revert(): void {+ console.log('\nReverting pnpm-workspace.yaml and pnpm-lock.yaml...')+ fs.writeFileSync(WORKSPACE_YAML_PATH, originalYaml, 'utf-8')+ fs.writeFileSync(LOCKFILE_PATH, originalLockfile, 'utf-8')+ console.log('Reverted to original state.')+ }++ console.log(`\nAdding override: ${selected.module_name}: ${selected.overrideVersion}`)+ const updatedYaml = addOverride(originalYaml, selected.module_name, selected.overrideVersion)+ fs.writeFileSync(WORKSPACE_YAML_PATH, updatedYaml, 'utf-8')+ console.log('Updated pnpm-workspace.yaml')++ console.log('\nRunning pnpm install (with override)...')+ try {+ execSync('pnpm install', {+ stdio: 'pipe',+ encoding: 'utf-8',+ })+ } catch (error: any) {+ const output = (error.stdout ?? '') + (error.stderr ?? '')+ if (output.includes('ERR_PNPM_NO_MATCHING_VERSION')) {+ console.error(+ `\nNo matching version found for "${selected.module_name}@${selected.overrideVersion}", the minimumReleaseAge option forbids it from installing.`+ )+ revert()+ process.exit(1)+ }+ throw error+ }++ // Remove the override and re-install to see if the lockfile update alone fixes it+ console.log('\nRemoving override and running pnpm install again...')+ fs.writeFileSync(WORKSPACE_YAML_PATH, originalYaml, 'utf-8')+ execSync('pnpm install --silent', {+ stdio: 'pipe',+ encoding: 'utf-8',+ })++ console.log('\nRunning pnpm audit to verify fix without override...')+ const verifyResult = runAudit()++ const stillVulnerable = Object.values(verifyResult.advisories).some(+ (adv) => adv.module_name === selected.module_name+ )++ if (stillVulnerable) {+ revert()+ 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)+ }++ console.log(+ `\nSUCCESS: Vulnerability for "${selected.module_name}" resolved without needing a permanent override.`+ )+}++main().catch((error) => {+ console.error('Fatal error:', error)+ process.exit(1)+})