Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(frontend): fix security vulnerability (#14537)

Liu Jid3f73d9e2376
diff --git a/frontend/.pnpmfile.cjs b/frontend/.pnpmfile.cjs
index b3b9b90125..2a09e40dec 100644
--- a/frontend/.pnpmfile.cjs
+++ b/frontend/.pnpmfile.cjs
@@ -1,13 +1,40 @@
module.exports = {
hooks: {
readPackage(pkg) {
- if (pkg.name === 'unplugin-icons' && pkg.peerDependencies) {
- ["vue-template-compiler", "vue-template-es2015-compiler"].forEach((key) => {
+ if (pkg.name === "unplugin-icons") {
+ // https://github.com/bytebase/bytebase/security/dependabot/63
+ ["vue-template-compiler", "vue-template-es2015-compiler"].forEach(
+ (key) => {
+ if (pkg.peerDependencies) {
+ Reflect.deleteProperty(pkg.peerDependencies, key);
+ }
+ if (pkg.peerDependenciesMeta) {
+ Reflect.deleteProperty(pkg.peerDependenciesMeta, key);
+ }
+ }
+ );
+ }
+ if (pkg.name === "@types/splitpanes") {
+ // https://github.com/bytebase/bytebase/security/dependabot/65
+ // @types/splitpanes depends on vue@2
+ // but it's just a type reference, and will not be actually compiled
+ // into our build.
+ // So we won't resolve it, to avoid security vulnerability.
+ const key = "vue";
+ if (pkg.dependencies) {
+ Reflect.deleteProperty(pkg.dependencies, key);
+ }
+ if (pkg.devDependencies) {
+ Reflect.deleteProperty(pkg.devDependencies, key);
+ }
+ if (pkg.peerDependencies) {
Reflect.deleteProperty(pkg.peerDependencies, key);
+ }
+ if (pkg.peerDependenciesMeta) {
Reflect.deleteProperty(pkg.peerDependenciesMeta, key);
- })
+ }
}
return pkg;
- }
- }
-}
+ },
+ },
+};
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index ebc7b99794..2a7d4222e8 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -4,7 +4,7 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
-pnpmfileChecksum: r5ujxfoyg7atke4nds2xmbp23a
+pnpmfileChecksum: c7yt6kjztu344n5b2n3pwttv5a
importers:
@@ -27,7 +27,7 @@ importers:
version: 0.1.2
'@tanstack/vue-query':
specifier: ^5.59.16
'@tanstack/vue-table':
specifier: 8.20.5
@@ -373,7 +373,7 @@ importers:
version: 10.9.2(@types/[email protected])([email protected])
ts-proto:
specifier: ^2.0.3
- version: 2.4.0
+ version: 2.4.1
typescript:
specifier: 5.5.4
version: 5.5.4
@@ -1197,15 +1197,15 @@ packages:
resolution: {integrity: sha512-Wo1iKt2b9OT7d+YGhvEPD3DXvPv2etTusIMhMUoG7fbhmxcXCtIjJDEygy91Y2JFlwGyjqiBPRozme7UD8hoqg==}
engines: {node: '>=12'}
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-tI+k0KyCo1EBJ54vxK1kY24LWj673ujTydCZmzEZKAew4NqZzTaVQJEuaG1qKj2M03kUHN46rchLRd+TxVq/zQ==}
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-iG5vqurEOEbv+paP6kW3zPENa99kSIrd1THISJMaTwVlJ+N5yjVDNOUwp9McK2DWqWCXM3v13ubBbAyhxT78UQ==}
'@tanstack/[email protected]':
resolution: {integrity: sha512-P9dF7XbibHph2PFRz8gfBKEXEY/HJPOhym8CHmjF8y3q5mWpKx9xtZapXQUWCgkqvsK0R46Azuz+VaxD4Xl+Tg==}
engines: {node: '>=12'}
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-BNl6hcOLbbvjDpAuzpD+0FUna+eZkFgTzads9/TtZPMgwWOUmJ016Q2X5ECFrMg+J7ubsKdViLS1IhASJDHGeQ==}
+ '@tanstack/[email protected]':
+ resolution: {integrity: sha512-jRr+r/ZN8raqoPdPeiWPNpXDK5Is137N6t/p9h5gS8Dy9HKaHP4idHvXjmfwwzdqH+rwUyxmmmLH68YUBOEpMQ==}
peerDependencies:
'@vue/composition-api': ^1.1.2
vue: ^2.6.0 || ^3.3.0
@@ -1495,8 +1495,8 @@ packages:
'@vitest/[email protected]':
resolution: {integrity: sha512-L95zIAkEuTDbUX1IsjRl+vyBSLh3PwLLgKpghl37aCK9Jvw0iP+wKwIFhfjdUtA2myLgjrG6VU6JCFLv8q/3Ww==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-4ZOwtk2bqG5Y6xRGHcveZVr+6txkH7M2e+nPFd6guSoN638v/1XQ0K06eOpi0ptVU/2tW/pIU4IoPotY/GZ9fw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-exZyLcEnHgDMKc54TtHca4McV4sKT+NKAe9ix/yhd/qkYb/TP8HTyXRFDijV19qKqTZM0hPL4753zU/U8L/gAA==}
'@vitest/[email protected]':
resolution: {integrity: sha512-sKRautINI9XICAMl2bjxQM8VfCMTB0EbsBc/EDFA57V6UQevEKY/TOPOF5nzcvCALltiLfXWbq4MaAwWx/YxIA==}
@@ -1547,9 +1547,6 @@ packages:
resolution: {integrity: sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==}
- resolution: {integrity: sha512-KWhJ9k5nXuNtygPU7+t1rX6baZeqOYLEforUPjgNDBnLicfHCoi48H87Q8XyLZOrNNsmhuwKqtpDQWjEFe6Ekg==}
-
resolution: {integrity: sha512-einJxqEw8IIJxzmnxmJBuK2usI+lJonl53foq+9etB2HAzlPjAS/wa7r0uUpXw5ByX3/0uswVSrjNb17vJm1kQ==}
@@ -2215,8 +2212,8 @@ packages:
engines: {node: '>=14'}
hasBin: true
- resolution: {integrity: sha512-PWVzBjghx7/wop6n22vS2MLU8tKGd4Q91aCEGhG/TYmW6PP5OcSXcdnxTe1NNt0T66N8D6jxh4kC8UsdzOGaIw==}
+ resolution: {integrity: sha512-pI2QF6+i+zjPbqRzJwkMvtvkdI7MjVbSh2g8dlMguDJIXEPw+kwasS1Jl+YGPEBfGVxsVgGUratAKymPdPo2vQ==}
resolution: {integrity: sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==}
@@ -2861,8 +2858,8 @@ packages:
peerDependencies:
vue: '>=3.0.1'
- resolution: {integrity: sha512-8rYBO+MsWkgjDSOvLomYnzhdwEG51olQ4zL5KXnNJWV5MNmrb4rTZdrtkhxjnD/QyZUqR/Z/XDsUs/4ej2nx0g==}
+ resolution: {integrity: sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==}
resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==}
@@ -3081,8 +3078,8 @@ packages:
peerDependencies:
vue: ^3.0.0
- resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
+ resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
@@ -3371,11 +3368,6 @@ packages:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
- resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
- engines: {node: '>=10.13.0'}
- hasBin: true
-
resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==}
engines: {node: '>=14'}
@@ -3787,8 +3779,8 @@ packages:
resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}
- resolution: {integrity: sha512-5RU2/lxTA3YUZxju61HO2U6EoZLvBLtmV2mbTvqyu4a/7s7RmJPT+1YekhMVsQhznRWk/czIwDUg+V8Q9ZuG4w==}
+ resolution: {integrity: sha512-ZF5gQIQa/UmzfvxbHZI3JXN0/Jt+vnAfAviNRAMc491laiK6YCLpCW9ft8oaCRFOTxCZtUTE6XB0ZQAe3olntw==}
engines: {node: '>=16'}
peerDependencies:
typescript: '>=4.2.0'
@@ -3819,8 +3811,8 @@ packages:
resolution: {integrity: sha512-wHcTH3xIv11jxgkX5OyCSFfw27agpInAd6yh89hKG6zqIXnjW9SYqSER2CVQxdPj4czeOhGagNvZBEbJPy7qkw==}
- resolution: {integrity: sha512-YmLjjnnBA2g38bPQgUn4aK7RwWg0CZcxNefAeTXhnst49jJp1bDX9sv4QUzEr918Evn7/Fzd9Lp6Yvkoro6pGA==}
+ resolution: {integrity: sha512-0KC6+a4o/KVaF6qtJdhkaRmYCpsRLojTbqZ4Q7G7JIu5YVGBhyy39n/eINkZaHi94/2e9SeQOtt9AqVEYpHO5g==}
hasBin: true
@@ -4099,10 +4091,6 @@ packages:
peerDependencies:
typescript: '>=5.0.0'
- resolution: {integrity: sha512-4gCtFXaAA3zYZdTp5s4Hl2sozuySsgz4jy1EnpBHNfpMa9dK1ZCG7viqBPCwXtmgc8nHqUsAu3G4gtmXkkY3Sw==}
- deprecated: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
-
resolution: {integrity: sha512-njqRrOy7W3YLAlVqSKpBebtZpDVg21FPoaq1I7f/+qqBThK9ChAIjkRWgeP6Eat+8C+iia4P3OYqpATP21BCoQ==}
peerDependencies:
@@ -5022,14 +5010,14 @@ snapshots:
dependencies:
remove-accents: 0.5.0
- '@tanstack/[email protected]': {}
+ '@tanstack/[email protected]': {}
'@tanstack/[email protected]': {}
dependencies:
'@tanstack/match-sorter-utils': 8.19.4
- '@tanstack/query-core': 5.60.6
+ '@tanstack/query-core': 5.61.5
'@vue/devtools-api': 6.6.4
vue: 3.4.31([email protected])
@@ -5241,9 +5229,7 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
- dependencies:
- vue: 2.7.16
+ '@types/[email protected]': {}
'@types/[email protected]': {}
@@ -5269,7 +5255,7 @@ snapshots:
graphemer: 1.4.0
ignore: 5.3.2
natural-compare: 1.4.0
- ts-api-utils: 1.4.1([email protected])
+ ts-api-utils: 1.4.2([email protected])
optionalDependencies:
typescript: 5.5.4
transitivePeerDependencies:
@@ -5299,7 +5285,7 @@ snapshots:
'@typescript-eslint/utils': 8.16.0([email protected]([email protected]))([email protected])
debug: 4.3.7
eslint: 9.15.0([email protected])
- ts-api-utils: 1.4.1([email protected])
+ ts-api-utils: 1.4.2([email protected])
optionalDependencies:
typescript: 5.5.4
transitivePeerDependencies:
@@ -5316,7 +5302,7 @@ snapshots:
is-glob: 4.0.3
minimatch: 9.0.5
semver: 7.6.3
- ts-api-utils: 1.4.1([email protected])
+ ts-api-utils: 1.4.2([email protected])
optionalDependencies:
typescript: 5.5.4
transitivePeerDependencies:
@@ -5365,7 +5351,7 @@ snapshots:
dependencies:
'@vitest/spy': 2.1.4
estree-walker: 3.0.3
- magic-string: 0.30.13
+ magic-string: 0.30.14
optionalDependencies:
vite: 5.4.10(@types/[email protected])([email protected])
@@ -5373,7 +5359,7 @@ snapshots:
dependencies:
tinyrainbow: 1.2.0
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
tinyrainbow: 1.2.0
@@ -5385,7 +5371,7 @@ snapshots:
'@vitest/[email protected]':
dependencies:
'@vitest/pretty-format': 2.1.4
- magic-string: 0.30.13
+ magic-string: 0.30.14
pathe: 1.1.2
'@vitest/[email protected]':
@@ -5466,14 +5452,6 @@ snapshots:
'@vue/compiler-core': 3.5.13
'@vue/shared': 3.5.13
- dependencies:
- '@babel/parser': 7.26.2
- postcss: 8.4.47
- source-map: 0.6.1
- optionalDependencies:
- prettier: 2.8.8
-
dependencies:
'@babel/parser': 7.26.2
@@ -5482,7 +5460,7 @@ snapshots:
'@vue/compiler-ssr': 3.4.31
'@vue/shared': 3.4.31
estree-walker: 2.0.2
- magic-string: 0.30.13
+ magic-string: 0.30.14
postcss: 8.4.47
source-map-js: 1.2.1
@@ -5494,7 +5472,7 @@ snapshots:
'@vue/compiler-ssr': 3.5.13
'@vue/shared': 3.5.13
estree-walker: 2.0.2
- magic-string: 0.30.13
+ magic-string: 0.30.14
postcss: 8.4.49
source-map-js: 1.2.1
@@ -5748,7 +5726,7 @@ snapshots:
dependencies:
caniuse-lite: 1.0.30001684
- electron-to-chromium: 1.5.65
+ electron-to-chromium: 1.5.66
node-releases: 2.0.18
update-browserslist-db: 1.1.1([email protected])
@@ -6181,7 +6159,7 @@ snapshots:
minimatch: 9.0.1
semver: 7.6.3
@@ -6846,7 +6824,7 @@ snapshots:
dependencies:
vue: 3.4.31([email protected])
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
@@ -7261,7 +7239,7 @@ snapshots:
vue: 3.4.31([email protected])
@@ -7498,13 +7476,13 @@ snapshots:
dependencies:
- nanoid: 3.3.7
+ nanoid: 3.3.8
picocolors: 1.1.1
source-map-js: 1.2.1
dependencies:
- nanoid: 3.3.7
+ nanoid: 3.3.8
picocolors: 1.1.1
source-map-js: 1.2.1
@@ -7586,9 +7564,6 @@ snapshots:
- optional: true
-
@@ -7851,7 +7826,8 @@ snapshots:
+ optional: true
@@ -8024,7 +8000,7 @@ snapshots:
dependencies:
typescript: 5.5.4
@@ -8058,7 +8034,7 @@ snapshots:
dependencies:
'@bufbuild/protobuf': 2.2.2
dependencies:
'@bufbuild/protobuf': 2.2.2
case-anything: 2.1.13
@@ -8145,7 +8121,7 @@ snapshots:
debug: 4.3.7
fast-glob: 3.3.2
local-pkg: 0.5.1
- magic-string: 0.30.13
+ magic-string: 0.30.14
minimatch: 9.0.5
mlly: 1.7.3
unplugin: 1.16.0
@@ -8246,7 +8222,7 @@ snapshots:
dependencies:
'@vitest/expect': 2.1.4
'@vitest/mocker': 2.1.4([email protected](@types/[email protected])([email protected]))
- '@vitest/pretty-format': 2.1.5
+ '@vitest/pretty-format': 2.1.6
'@vitest/runner': 2.1.4
'@vitest/snapshot': 2.1.4
'@vitest/spy': 2.1.4
@@ -8254,7 +8230,7 @@ snapshots:
chai: 5.1.2
debug: 4.3.7
expect-type: 1.1.0
- magic-string: 0.30.13
+ magic-string: 0.30.14
pathe: 1.1.2
std-env: 3.8.0
tinybench: 2.9.0
@@ -8359,11 +8335,6 @@ snapshots:
semver: 7.6.3
typescript: 5.5.4
- dependencies:
- '@vue/compiler-sfc': 2.7.16
- csstype: 3.1.3
-
dependencies:
'@vue/compiler-dom': 3.4.31