Skip to content

Commit 254ef00

Browse files
authored
fix(dependencies): update helper requirement for minor PP vulnerability (#5417)
The vulnerability comes up when user-defined search parameters have a malicious key `constructor`. An error then will be thrown, so the search will no longer be active, but any prototype injection would still happen, causing people to be vulnerable. With default implementations of InstantSearch, this isn't reachable, as `searchParameters` aren't a direct parameter, except for `configure`
1 parent f574415 commit 254ef00

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

packages/instantsearch.js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@types/google.maps": "^3.45.3",
3333
"@types/hogan.js": "^3.0.0",
3434
"@types/qs": "^6.5.3",
35-
"algoliasearch-helper": "^3.11.1",
35+
"algoliasearch-helper": "^3.11.2",
3636
"hogan.js": "^3.0.2",
3737
"htm": "^3.0.0",
3838
"preact": "^10.10.0",

packages/react-instantsearch-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"dependencies": {
4040
"@babel/runtime": "^7.1.2",
41-
"algoliasearch-helper": "^3.11.1",
41+
"algoliasearch-helper": "^3.11.2",
4242
"prop-types": "^15.6.2",
4343
"react-fast-compare": "^3.0.0"
4444
},

packages/react-instantsearch-dom/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
},
4242
"dependencies": {
4343
"@babel/runtime": "^7.1.2",
44-
"algoliasearch-helper": "^3.11.1",
44+
"algoliasearch-helper": "^3.11.2",
4545
"classnames": "^2.2.5",
4646
"prop-types": "^15.6.2",
4747
"react-fast-compare": "^3.0.0",

packages/react-instantsearch-hooks/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"dependencies": {
5050
"@babel/runtime": "^7.1.2",
51-
"algoliasearch-helper": "^3.11.1",
51+
"algoliasearch-helper": "^3.11.2",
5252
"instantsearch.js": "^4.47.0",
5353
"use-sync-external-store": "^1.0.0"
5454
},

packages/vue-instantsearch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@vue/test-utils": "1.3.0",
6161
"@vue/test-utils2": "npm:@vue/test-utils@2.0.0-rc.11",
6262
"algoliasearch": "4.14.3",
63-
"algoliasearch-helper": "3.11.1",
63+
"algoliasearch-helper": "3.11.2",
6464
"instantsearch.css": "8.0.0",
6565
"rollup": "1.32.1",
6666
"rollup-plugin-babel": "4.4.0",

tests/mocks/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.2",
44
"private": true,
55
"dependencies": {
6-
"algoliasearch-helper": "3.11.1",
6+
"algoliasearch-helper": "3.11.2",
77
"instantsearch.js": "4.49.3"
88
}
99
}

yarn.lock

+11-11
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@
412412
"@jridgewell/gen-mapping" "^0.3.2"
413413
jsesc "^2.5.1"
414414

415-
"@babel/helper-annotate-as-pure@^7.14.5", "@babel/helper-annotate-as-pure@^7.18.6":
415+
"@babel/helper-annotate-as-pure@^7.18.6":
416416
version "7.18.6"
417417
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb"
418418
integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==
@@ -438,7 +438,7 @@
438438
lru-cache "^5.1.1"
439439
semver "^6.3.0"
440440

441-
"@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.16.7", "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.20.5", "@babel/helper-create-class-features-plugin@^7.20.7", "@babel/helper-create-class-features-plugin@^7.4.4":
441+
"@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.20.5", "@babel/helper-create-class-features-plugin@^7.20.7", "@babel/helper-create-class-features-plugin@^7.4.4":
442442
version "7.20.7"
443443
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.7.tgz#d0e1f8d7e4ed5dac0389364d9c0c191d948ade6f"
444444
integrity sha512-LtoWbDXOaidEf50hmdDqn9g8VEzsorMexoWMQdQODbvmqYmaF23pBP5VNPAGIFHsFQCIeKokDiz3CH5Y2jlY6w==
@@ -619,7 +619,7 @@
619619
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2"
620620
integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==
621621

622-
"@babel/helper-validator-option@^7.14.5", "@babel/helper-validator-option@^7.16.7", "@babel/helper-validator-option@^7.18.6":
622+
"@babel/helper-validator-option@^7.14.5", "@babel/helper-validator-option@^7.18.6":
623623
version "7.18.6"
624624
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8"
625625
integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==
@@ -900,7 +900,7 @@
900900
dependencies:
901901
"@babel/helper-plugin-utils" "^7.8.3"
902902

903-
"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.14.5", "@babel/plugin-syntax-flow@^7.18.6", "@babel/plugin-syntax-flow@^7.2.0":
903+
"@babel/plugin-syntax-flow@^7.0.0", "@babel/plugin-syntax-flow@^7.18.6", "@babel/plugin-syntax-flow@^7.2.0":
904904
version "7.18.6"
905905
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1"
906906
integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==
@@ -991,7 +991,7 @@
991991
dependencies:
992992
"@babel/helper-plugin-utils" "^7.14.5"
993993

994-
"@babel/plugin-syntax-typescript@^7.16.7", "@babel/plugin-syntax-typescript@^7.20.0", "@babel/plugin-syntax-typescript@^7.7.2":
994+
"@babel/plugin-syntax-typescript@^7.20.0", "@babel/plugin-syntax-typescript@^7.7.2":
995995
version "7.20.0"
996996
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.20.0.tgz#4e9a0cfc769c85689b77a2e642d24e9f697fc8c7"
997997
integrity sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==
@@ -1240,7 +1240,7 @@
12401240
dependencies:
12411241
"@babel/helper-plugin-utils" "^7.16.7"
12421242

1243-
"@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.12.17", "@babel/plugin-transform-react-jsx@^7.14.5", "@babel/plugin-transform-react-jsx@^7.16.7", "@babel/plugin-transform-react-jsx@^7.17.12", "@babel/plugin-transform-react-jsx@^7.18.6":
1243+
"@babel/plugin-transform-react-jsx@^7.0.0", "@babel/plugin-transform-react-jsx@^7.12.17", "@babel/plugin-transform-react-jsx@^7.14.5", "@babel/plugin-transform-react-jsx@^7.17.12", "@babel/plugin-transform-react-jsx@^7.18.6":
12441244
version "7.20.7"
12451245
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.20.7.tgz#025d85a1935fd7e19dfdcb1b1d4df34d4da484f7"
12461246
integrity sha512-Tfq7qqD+tRj3EoDhY00nn2uP2hsRxgYGi5mLQ5TimKav0a9Lrpd4deE+fcLXU8zFYRjlKPHZhpCvfEA6qnBxqQ==
@@ -1334,7 +1334,7 @@
13341334
dependencies:
13351335
"@babel/helper-plugin-utils" "^7.18.9"
13361336

1337-
"@babel/plugin-transform-typescript@^7.0.0", "@babel/plugin-transform-typescript@^7.15.0", "@babel/plugin-transform-typescript@^7.16.7", "@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0":
1337+
"@babel/plugin-transform-typescript@^7.0.0", "@babel/plugin-transform-typescript@^7.15.0", "@babel/plugin-transform-typescript@^7.18.6", "@babel/plugin-transform-typescript@^7.5.0":
13381338
version "7.20.7"
13391339
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.20.7.tgz#673f49499cd810ae32a1ea5f3f8fab370987e055"
13401340
integrity sha512-m3wVKEvf6SoszD8pu4NZz3PvfKRCMgk6D6d0Qi9hNnlM5M6CFS92EgF4EiHVLKbU0r/r7ty1hg7NPZwE7WRbYw==
@@ -8516,10 +8516,10 @@ ajv@^8.0.1:
85168516
require-from-string "^2.0.2"
85178517
uri-js "^4.2.2"
85188518

8519-
algoliasearch-helper@3.11.1, algoliasearch-helper@^3.11.1:
8520-
version "3.11.1"
8521-
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.11.1.tgz#d83ab7f1a2a374440686ef7a144b3c288b01188a"
8522-
integrity sha512-mvsPN3eK4E0bZG0/WlWJjeqe/bUD2KOEVOl0GyL/TGXn6wcpZU8NOuztGHCUKXkyg5gq6YzUakVTmnmSSO5Yiw==
8519+
algoliasearch-helper@3.11.2, algoliasearch-helper@^3.11.2:
8520+
version "3.11.2"
8521+
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.11.2.tgz#f42db10433e6264f1d1ba503699cbdbff7b48dff"
8522+
integrity sha512-eKvSM5hz5w9RcUowu8LnQ5v0KRrFLCvF4K3KF/Ab3VwCT726rWgZUWUIQUPjr9qDENUMukQ/IHZ7bGUVYRGP0g==
85238523
dependencies:
85248524
"@algolia/events" "^4.0.1"
85258525

0 commit comments

Comments
 (0)