Skip to content

Commit 13f67e2

Browse files
authored
fix: @babel/traverse CVE-2023-45133 (#200)
1 parent de5fa11 commit 13f67e2

File tree

2 files changed

+136
-13
lines changed

2 files changed

+136
-13
lines changed

ui/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@
4343
"prettier": "^2.2.1",
4444
"sass-loader": "^10.1.1",
4545
"vue-template-compiler": "^2.6.11"
46+
},
47+
"resolutions": {
48+
"@babel/traverse": "7.23.2"
4649
}
4750
}

ui/yarn.lock

Lines changed: 133 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
dependencies:
1010
"@babel/highlight" "^7.14.5"
1111

12+
"@babel/code-frame@^7.22.13", "@babel/code-frame@^7.27.1":
13+
version "7.27.1"
14+
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be"
15+
integrity sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==
16+
dependencies:
17+
"@babel/helper-validator-identifier" "^7.27.1"
18+
js-tokens "^4.0.0"
19+
picocolors "^1.1.1"
20+
1221
"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.14.5", "@babel/compat-data@^7.14.7":
1322
version "7.14.7"
1423
resolved "https://registry.npmmirror.com/@babel/compat-data/download/@babel/compat-data-7.14.7.tgz?cache=0&sync_timestamp=1624312556795&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fcompat-data%2Fdownload%2F%40babel%2Fcompat-data-7.14.7.tgz#7b047d7a3a89a67d2258dc61f604f098f1bc7e08"
@@ -44,6 +53,17 @@
4453
jsesc "^2.5.1"
4554
source-map "^0.5.0"
4655

56+
"@babel/generator@^7.23.0":
57+
version "7.28.0"
58+
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.0.tgz#9cc2f7bd6eb054d77dc66c2664148a0c5118acd2"
59+
integrity sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==
60+
dependencies:
61+
"@babel/parser" "^7.28.0"
62+
"@babel/types" "^7.28.0"
63+
"@jridgewell/gen-mapping" "^0.3.12"
64+
"@jridgewell/trace-mapping" "^0.3.28"
65+
jsesc "^3.0.2"
66+
4767
"@babel/helper-annotate-as-pure@^7.14.5":
4868
version "7.14.5"
4969
resolved "https://registry.npmmirror.com/@babel/helper-annotate-as-pure/download/@babel/helper-annotate-as-pure-7.14.5.tgz?cache=0&sync_timestamp=1623280355986&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fhelper-annotate-as-pure%2Fdownload%2F%40babel%2Fhelper-annotate-as-pure-7.14.5.tgz#7bf478ec3b71726d56a8ca5775b046fc29879e61"
@@ -103,6 +123,13 @@
103123
resolve "^1.14.2"
104124
semver "^6.1.2"
105125

126+
"@babel/helper-environment-visitor@^7.22.20":
127+
version "7.24.7"
128+
resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9"
129+
integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==
130+
dependencies:
131+
"@babel/types" "^7.24.7"
132+
106133
"@babel/helper-explode-assignable-expression@^7.14.5":
107134
version "7.14.5"
108135
resolved "https://registry.npmmirror.com/@babel/helper-explode-assignable-expression/download/@babel/helper-explode-assignable-expression-7.14.5.tgz?cache=0&sync_timestamp=1623280355925&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fhelper-explode-assignable-expression%2Fdownload%2F%40babel%2Fhelper-explode-assignable-expression-7.14.5.tgz#8aa72e708205c7bb643e45c73b4386cdf2a1f645"
@@ -119,6 +146,14 @@
119146
"@babel/template" "^7.14.5"
120147
"@babel/types" "^7.14.5"
121148

149+
"@babel/helper-function-name@^7.23.0":
150+
version "7.24.7"
151+
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2"
152+
integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==
153+
dependencies:
154+
"@babel/template" "^7.24.7"
155+
"@babel/types" "^7.24.7"
156+
122157
"@babel/helper-get-function-arity@^7.14.5":
123158
version "7.14.5"
124159
resolved "https://registry.npmmirror.com/@babel/helper-get-function-arity/download/@babel/helper-get-function-arity-7.14.5.tgz?cache=0&sync_timestamp=1623280360950&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fhelper-get-function-arity%2Fdownload%2F%40babel%2Fhelper-get-function-arity-7.14.5.tgz#25fbfa579b0937eee1f3b805ece4ce398c431815"
@@ -133,6 +168,13 @@
133168
dependencies:
134169
"@babel/types" "^7.14.5"
135170

171+
"@babel/helper-hoist-variables@^7.22.5":
172+
version "7.24.7"
173+
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee"
174+
integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==
175+
dependencies:
176+
"@babel/types" "^7.24.7"
177+
136178
"@babel/helper-member-expression-to-functions@^7.14.5":
137179
version "7.14.7"
138180
resolved "https://registry.npmmirror.com/@babel/helper-member-expression-to-functions/download/@babel/helper-member-expression-to-functions-7.14.7.tgz?cache=0&sync_timestamp=1624312576071&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fhelper-member-expression-to-functions%2Fdownload%2F%40babel%2Fhelper-member-expression-to-functions-7.14.7.tgz#97e56244beb94211fe277bd818e3a329c66f7970"
@@ -213,11 +255,28 @@
213255
dependencies:
214256
"@babel/types" "^7.14.5"
215257

258+
"@babel/helper-split-export-declaration@^7.22.6":
259+
version "7.24.7"
260+
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856"
261+
integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==
262+
dependencies:
263+
"@babel/types" "^7.24.7"
264+
265+
"@babel/helper-string-parser@^7.27.1":
266+
version "7.27.1"
267+
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687"
268+
integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==
269+
216270
"@babel/helper-validator-identifier@^7.14.5":
217271
version "7.14.5"
218272
resolved "https://registry.npmmirror.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.14.5.tgz?cache=0&sync_timestamp=1623280480584&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fhelper-validator-identifier%2Fdownload%2F%40babel%2Fhelper-validator-identifier-7.14.5.tgz#d0f0e277c512e0c938277faa85a3968c9a44c0e8"
219273
integrity sha1-0PDid8US4Mk4J3+qhaOWjJpEwOg=
220274

275+
"@babel/helper-validator-identifier@^7.27.1":
276+
version "7.27.1"
277+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8"
278+
integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==
279+
221280
"@babel/helper-validator-option@^7.14.5":
222281
version "7.14.5"
223282
resolved "https://registry.npmmirror.com/@babel/helper-validator-option/download/@babel/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3"
@@ -251,11 +310,18 @@
251310
chalk "^2.0.0"
252311
js-tokens "^4.0.0"
253312

254-
"@babel/parser@^7.12.5", "@babel/parser@^7.14.5", "@babel/parser@^7.14.6", "@babel/parser@^7.14.7", "@babel/parser@^7.7.0":
313+
"@babel/parser@^7.12.5", "@babel/parser@^7.14.5", "@babel/parser@^7.14.6", "@babel/parser@^7.7.0":
255314
version "7.14.7"
256315
resolved "https://registry.npmmirror.com/@babel/parser/download/@babel/parser-7.14.7.tgz?cache=0&sync_timestamp=1624312534250&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fparser%2Fdownload%2F%40babel%2Fparser-7.14.7.tgz#6099720c8839ca865a2637e6c85852ead0bdb595"
257316
integrity sha1-YJlyDIg5yoZaJjfmyFhS6tC9tZU=
258317

318+
"@babel/parser@^7.23.0", "@babel/parser@^7.27.2", "@babel/parser@^7.28.0":
319+
version "7.28.0"
320+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.0.tgz#979829fbab51a29e13901e5a80713dbcb840825e"
321+
integrity sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==
322+
dependencies:
323+
"@babel/types" "^7.28.0"
324+
259325
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.14.5":
260326
version "7.14.5"
261327
resolved "https://registry.npmmirror.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/download/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.14.5.tgz?cache=0&sync_timestamp=1623280495759&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Fplugin-bugfix-v8-spread-parameters-in-optional-chaining%2Fdownload%2F%40babel%2Fplugin-bugfix-v8-spread-parameters-in-optional-chaining-7.14.5.tgz#4b467302e1548ed3b1be43beae2cc9cf45e0bb7e"
@@ -880,18 +946,28 @@
880946
"@babel/parser" "^7.14.5"
881947
"@babel/types" "^7.14.5"
882948

883-
"@babel/traverse@^7.0.0", "@babel/traverse@^7.12.5", "@babel/traverse@^7.13.0", "@babel/traverse@^7.14.5", "@babel/traverse@^7.7.0":
884-
version "7.14.7"
885-
resolved "https://registry.npmmirror.com/@babel/traverse/download/@babel/traverse-7.14.7.tgz?cache=0&sync_timestamp=1624312533533&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40babel%2Ftraverse%2Fdownload%2F%40babel%2Ftraverse-7.14.7.tgz#64007c9774cfdc3abd23b0780bc18a3ce3631753"
886-
integrity sha1-ZAB8l3TP3Dq9I7B4C8GKPONjF1M=
887-
dependencies:
888-
"@babel/code-frame" "^7.14.5"
889-
"@babel/generator" "^7.14.5"
890-
"@babel/helper-function-name" "^7.14.5"
891-
"@babel/helper-hoist-variables" "^7.14.5"
892-
"@babel/helper-split-export-declaration" "^7.14.5"
893-
"@babel/parser" "^7.14.7"
894-
"@babel/types" "^7.14.5"
949+
"@babel/template@^7.24.7":
950+
version "7.27.2"
951+
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.27.2.tgz#fa78ceed3c4e7b63ebf6cb39e5852fca45f6809d"
952+
integrity sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==
953+
dependencies:
954+
"@babel/code-frame" "^7.27.1"
955+
"@babel/parser" "^7.27.2"
956+
"@babel/types" "^7.27.1"
957+
958+
"@babel/traverse@7.23.2", "@babel/traverse@^7.0.0", "@babel/traverse@^7.12.5", "@babel/traverse@^7.13.0", "@babel/traverse@^7.14.5", "@babel/traverse@^7.7.0":
959+
version "7.23.2"
960+
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.23.2.tgz#329c7a06735e144a506bdb2cad0268b7f46f4ad8"
961+
integrity sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==
962+
dependencies:
963+
"@babel/code-frame" "^7.22.13"
964+
"@babel/generator" "^7.23.0"
965+
"@babel/helper-environment-visitor" "^7.22.20"
966+
"@babel/helper-function-name" "^7.23.0"
967+
"@babel/helper-hoist-variables" "^7.22.5"
968+
"@babel/helper-split-export-declaration" "^7.22.6"
969+
"@babel/parser" "^7.23.0"
970+
"@babel/types" "^7.23.0"
895971
debug "^4.1.0"
896972
globals "^11.1.0"
897973

@@ -903,6 +979,14 @@
903979
"@babel/helper-validator-identifier" "^7.14.5"
904980
to-fast-properties "^2.0.0"
905981

982+
"@babel/types@^7.23.0", "@babel/types@^7.24.7", "@babel/types@^7.27.1", "@babel/types@^7.28.0":
983+
version "7.28.2"
984+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b"
985+
integrity sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==
986+
dependencies:
987+
"@babel/helper-string-parser" "^7.27.1"
988+
"@babel/helper-validator-identifier" "^7.27.1"
989+
906990
"@carbon/icon-helpers@^10.14.0":
907991
version "10.19.0"
908992
resolved "https://registry.yarnpkg.com/@carbon/icon-helpers/-/icon-helpers-10.19.0.tgz#f6b608b181b4ca4aeeadac72ec11b7cf530b4d1c"
@@ -1004,6 +1088,32 @@
10041088
cssnano-preset-default "^4.0.0"
10051089
postcss "^7.0.0"
10061090

1091+
"@jridgewell/gen-mapping@^0.3.12":
1092+
version "0.3.12"
1093+
resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz#2234ce26c62889f03db3d7fea43c1932ab3e927b"
1094+
integrity sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==
1095+
dependencies:
1096+
"@jridgewell/sourcemap-codec" "^1.5.0"
1097+
"@jridgewell/trace-mapping" "^0.3.24"
1098+
1099+
"@jridgewell/resolve-uri@^3.1.0":
1100+
version "3.1.2"
1101+
resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6"
1102+
integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==
1103+
1104+
"@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0":
1105+
version "1.5.4"
1106+
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz#7358043433b2e5da569aa02cbc4c121da3af27d7"
1107+
integrity sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==
1108+
1109+
"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.28":
1110+
version "0.3.29"
1111+
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz#a58d31eaadaf92c6695680b2e1d464a9b8fbf7fc"
1112+
integrity sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==
1113+
dependencies:
1114+
"@jridgewell/resolve-uri" "^3.1.0"
1115+
"@jridgewell/sourcemap-codec" "^1.4.14"
1116+
10071117
"@mrmlnc/readdir-enhanced@^2.2.1":
10081118
version "2.2.1"
10091119
resolved "https://registry.npmmirror.com/@mrmlnc/readdir-enhanced/download/@mrmlnc/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
@@ -5380,6 +5490,11 @@ jsesc@^2.5.1:
53805490
resolved "https://registry.npmmirror.com/jsesc/download/jsesc-2.5.2.tgz?cache=0&sync_timestamp=1603893628084&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsesc%2Fdownload%2Fjsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"
53815491
integrity sha1-gFZNLkg9rPbo7yCWUKZ98/DCg6Q=
53825492

5493+
jsesc@^3.0.2:
5494+
version "3.1.0"
5495+
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d"
5496+
integrity sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==
5497+
53835498
jsesc@~0.5.0:
53845499
version "0.5.0"
53855500
resolved "https://registry.npmmirror.com/jsesc/download/jsesc-0.5.0.tgz?cache=0&sync_timestamp=1603893628084&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsesc%2Fdownload%2Fjsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d"
@@ -6607,6 +6722,11 @@ performance-now@^2.1.0:
66076722
resolved "https://registry.npmmirror.com/performance-now/download/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
66086723
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
66096724

6725+
picocolors@^1.1.1:
6726+
version "1.1.1"
6727+
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
6728+
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
6729+
66106730
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3:
66116731
version "2.3.0"
66126732
resolved "https://registry.npmmirror.com/picomatch/download/picomatch-2.3.0.tgz?cache=0&sync_timestamp=1621648229747&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fpicomatch%2Fdownload%2Fpicomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"

0 commit comments

Comments
 (0)