Skip to content

Commit a6c86f8

Browse files
ananzhAMoo-Miki
andauthored
[2.8 backport] Bump joi to v14 to avoid the possibility of prototype poisoning in a nested dependency (#4207)
Backport PR #3952 Signed-off-by: Miki <miki@amazon.com> Co-authored-by: Miki <miki@amazon.com>
1 parent 7489db9 commit a6c86f8

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010
- [CVE-2023-26486] Bump vega from `5.22.1` to `5.23.0` ([#3533](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3533))
1111
- [CVE-2023-26487] Bump vega from `5.22.1` to `5.23.0` ([#3533](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3533))
1212
- [CVE-2023-0842] Bump xml2js from `0.4.23` to `0.5.0` ([#3842](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3842))
13+
- Bump `joi` to v14 to avoid the possibility of prototype poisoning in a nested dependency ([#3952](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3952))
1314

1415
### 📈 Features/Enhancements
1516

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"https-proxy-agent": "^5.0.0",
189189
"inline-style": "^2.0.0",
190190
"ip-cidr": "^2.1.0",
191-
"joi": "^13.5.2",
191+
"joi": "^14.3.1",
192192
"js-yaml": "^3.14.0",
193193
"json-stable-stringify": "^1.0.1",
194194
"json-stringify-safe": "5.0.1",

packages/osd-config-schema/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"peerDependencies": {
1818
"lodash": "^4.17.21",
19-
"joi": "^13.5.2",
19+
"joi": "^14.3.1",
2020
"moment": "^2.24.0",
2121
"type-detect": "^4.0.8"
2222
}

packages/osd-test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"exit-hook": "^2.2.0",
3232
"getopts": "^2.2.5",
3333
"glob": "^7.1.7",
34-
"joi": "^13.5.2",
34+
"joi": "^14.3.1",
3535
"lodash": "^4.17.21",
3636
"parse-link-header": "^2.0.0",
3737
"rxjs": "^6.5.5",

yarn.lock

+5-10
Original file line numberDiff line numberDiff line change
@@ -9833,11 +9833,6 @@ hmac-drbg@^1.0.1:
98339833
minimalistic-assert "^1.0.0"
98349834
minimalistic-crypto-utils "^1.0.1"
98359835

9836-
hoek@5.x.x:
9837-
version "5.0.4"
9838-
resolved "https://registry.yarnpkg.com/hoek/-/hoek-5.0.4.tgz#0f7fa270a1cafeb364a4b2ddfaa33f864e4157da"
9839-
integrity sha512-Alr4ZQgoMlnere5FZJsIyfIjORBqZll5POhDsF4q64dPuJR6rNxXdDxtHSQq8OXRurhmx+PWYEE8bXRROY8h0w==
9840-
98419836
hoek@6.x.x:
98429837
version "6.1.3"
98439838
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.3.tgz#73b7d33952e01fe27a38b0457294b79dd8da242c"
@@ -11440,12 +11435,12 @@ jmespath@0.16.0:
1144011435
resolved "https://registry.yarnpkg.com/jmespath/-/jmespath-0.16.0.tgz#b15b0a85dfd4d930d43e69ed605943c802785076"
1144111436
integrity sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==
1144211437

11443-
joi@^13.5.2:
11444-
version "13.7.0"
11445-
resolved "https://registry.yarnpkg.com/joi/-/joi-13.7.0.tgz#cfd85ebfe67e8a1900432400b4d03bbd93fb879f"
11446-
integrity sha512-xuY5VkHfeOYK3Hdi91ulocfuFopwgbSORmIwzcwHKESQhC7w1kD5jaVSPnqDxS2I8t3RZ9omCKAxNwXN5zG1/Q==
11438+
joi@^14.3.1:
11439+
version "14.3.1"
11440+
resolved "https://registry.yarnpkg.com/joi/-/joi-14.3.1.tgz#164a262ec0b855466e0c35eea2a885ae8b6c703c"
11441+
integrity sha512-LQDdM+pkOrpAn4Lp+neNIFV3axv1Vna3j38bisbQhETPMANYRbFJFUyOZcOClYvM/hppMhGWuKSFEK9vjrB+bQ==
1144711442
dependencies:
11448-
hoek "5.x.x"
11443+
hoek "6.x.x"
1144911444
isemail "3.x.x"
1145011445
topo "3.x.x"
1145111446

0 commit comments

Comments
 (0)