Skip to content

Commit 5cfe6e7

Browse files
authored
Fixed CVE: babel dependencies & elliptic dependency (#1329)
* Fixed CVE Signed-off-by: Vaibhav Agarwal <[email protected]> * fixed cypress-workflow test file Signed-off-by: Vaibhav Agarwal <[email protected]> * Fixed UT workflow file Signed-off-by: Vaibhav Agarwal <[email protected]> --------- Signed-off-by: Vaibhav Agarwal <[email protected]>
1 parent ac2ee41 commit 5cfe6e7

File tree

4 files changed

+66
-19
lines changed

4 files changed

+66
-19
lines changed

.github/workflows/cypress-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- "*"
99
env:
10-
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
10+
OPENSEARCH_DASHBOARDS_VERSION: '2.19'
1111
jobs:
1212
tests:
1313
name: Run Cypress E2E tests

.github/workflows/unit-tests-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- "*"
99
env:
10-
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
10+
OPENSEARCH_DASHBOARDS_VERSION: '2.19'
1111
jobs:
1212
Get-CI-Image-Tag:
1313
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
"**/terser": "^4.8.1",
6262
"braces": "^3.0.3",
6363
"cross-spawn": "^7.0.5",
64-
"**/micromatch": "^4.0.8"
64+
"**/micromatch": "^4.0.8",
65+
"**/elliptic": "^6.5.4",
66+
"@babel/runtime": "^7.26.10",
67+
"@babel/helpers": "^7.26.10"
6568
},
6669
"devDependencies": {
6770
"@elastic/elastic-eslint-config-kibana": "link:../../packages/opensearch-eslint-config-opensearch-dashboards",
@@ -85,4 +88,4 @@
8588
"engines": {
8689
"yarn": "^1.21.1"
8790
}
88-
}
91+
}

yarn.lock

Lines changed: 59 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,38 @@
1010
"@babel/highlight" "^7.24.7"
1111
picocolors "^1.0.0"
1212

13+
"@babel/code-frame@^7.27.1":
14+
version "7.27.1"
15+
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be"
16+
integrity sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==
17+
dependencies:
18+
"@babel/helper-validator-identifier" "^7.27.1"
19+
js-tokens "^4.0.0"
20+
picocolors "^1.1.1"
21+
22+
"@babel/helper-string-parser@^7.27.1":
23+
version "7.27.1"
24+
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687"
25+
integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==
26+
1327
"@babel/helper-validator-identifier@^7.24.7":
1428
version "7.24.7"
1529
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db"
1630
integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==
1731

32+
"@babel/helper-validator-identifier@^7.27.1":
33+
version "7.27.1"
34+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8"
35+
integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==
36+
37+
"@babel/helpers@^7.26.10":
38+
version "7.27.6"
39+
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.27.6.tgz#6456fed15b2cb669d2d1fabe84b66b34991d812c"
40+
integrity sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==
41+
dependencies:
42+
"@babel/template" "^7.27.2"
43+
"@babel/types" "^7.27.6"
44+
1845
"@babel/highlight@^7.24.7":
1946
version "7.24.7"
2047
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d"
@@ -25,12 +52,34 @@
2552
js-tokens "^4.0.0"
2653
picocolors "^1.0.0"
2754

28-
"@babel/runtime@^7.12.5":
29-
version "7.24.8"
30-
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e"
31-
integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA==
55+
"@babel/parser@^7.27.2":
56+
version "7.28.0"
57+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.0.tgz#979829fbab51a29e13901e5a80713dbcb840825e"
58+
integrity sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==
3259
dependencies:
33-
regenerator-runtime "^0.14.0"
60+
"@babel/types" "^7.28.0"
61+
62+
"@babel/runtime@^7.12.5", "@babel/runtime@^7.26.10":
63+
version "7.27.6"
64+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.27.6.tgz#ec4070a04d76bae8ddbb10770ba55714a417b7c6"
65+
integrity sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==
66+
67+
"@babel/template@^7.27.2":
68+
version "7.27.2"
69+
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.27.2.tgz#fa78ceed3c4e7b63ebf6cb39e5852fca45f6809d"
70+
integrity sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==
71+
dependencies:
72+
"@babel/code-frame" "^7.27.1"
73+
"@babel/parser" "^7.27.2"
74+
"@babel/types" "^7.27.1"
75+
76+
"@babel/types@^7.27.1", "@babel/types@^7.27.6", "@babel/types@^7.28.0":
77+
version "7.28.1"
78+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.1.tgz#2aaf3c10b31ba03a77ac84f52b3912a0edef4cf9"
79+
integrity sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==
80+
dependencies:
81+
"@babel/helper-string-parser" "^7.27.1"
82+
"@babel/helper-validator-identifier" "^7.27.1"
3483

3584
3685
version "1.5.0"
@@ -1660,10 +1709,10 @@ ecc-jsbn@~0.1.1:
16601709
jsbn "~0.1.0"
16611710
safer-buffer "^2.1.0"
16621711

1663-
elliptic@^6.5.3, elliptic@^6.5.5:
1664-
version "6.5.7"
1665-
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.7.tgz#8ec4da2cb2939926a1b9a73619d768207e647c8b"
1666-
integrity sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==
1712+
elliptic@^6.5.3, elliptic@^6.5.4, elliptic@^6.5.5:
1713+
version "6.6.1"
1714+
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.6.1.tgz#3b8ffb02670bf69e382c7f65bf524c97c5405c06"
1715+
integrity sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==
16671716
dependencies:
16681717
bn.js "^4.11.9"
16691718
brorand "^1.1.0"
@@ -3644,7 +3693,7 @@ performance-now@^2.1.0:
36443693
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
36453694
integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==
36463695

3647-
picocolors@^1.0.0:
3696+
picocolors@^1.0.0, picocolors@^1.1.1:
36483697
version "1.1.1"
36493698
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
36503699
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
@@ -3916,11 +3965,6 @@ reflect.getprototypeof@^1.0.6, reflect.getprototypeof@^1.0.9:
39163965
get-proto "^1.0.1"
39173966
which-builtin-type "^1.2.1"
39183967

3919-
regenerator-runtime@^0.14.0:
3920-
version "0.14.1"
3921-
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
3922-
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
3923-
39243968
regexp.prototype.flags@^1.5.1, regexp.prototype.flags@^1.5.2, regexp.prototype.flags@^1.5.3:
39253969
version "1.5.4"
39263970
resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz#1ad6c62d44a259007e55b3970e00f746efbcaa19"

0 commit comments

Comments
 (0)