Skip to content

Commit e25ec7f

Browse files
Universal: Update qs due to CVE-2022-24999 (#286)
1 parent a05be4b commit e25ec7f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/universal/.devcontainer/local-features/setup-user/install.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,16 @@ jar cf ${MAVEN_PATH}/commons-io-2.11.jar /tmp/commons-io-commons-io-2.11.0-RC1
5252
rm -rf /tmp/commons-io-commons-io-2.11.0-RC1
5353

5454
# Temporary: Upgrade NPM packages due to mentioned CVEs.
55-
# decode-uri-component: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-38900
5655
# ansi-regex: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3807
57-
# minimatch: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3517
56+
# decode-uri-component: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-38900
5857
# got: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-33987
59-
NPM_PACKAGES_LIST="decode-uri-component
60-
ansi-regex
58+
# minimatch: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3517
59+
# qs: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24999
60+
NPM_PACKAGES_LIST="ansi-regex
61+
decode-uri-component
62+
got
6163
minimatch
62-
got"
64+
qs"
6365

6466
cd /usr/local/share/nvm/versions/node/v14*/lib/node_modules/npm
6567
npm install ${NPM_PACKAGES_LIST}

src/universal/test-project/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ check-version-ge "minimatch" "${minimatchVersion}" "3.0.5"
193193
gotVersion=$(npm ls --depth 1 --json | jq -r '.dependencies.got.version')
194194
check-version-ge "got" "${gotVersion}" "12.1.0"
195195

196+
qsVersion=$(npm ls --depth 1 --json | jq -r '.dependencies.qs.version')
197+
check-version-ge "qs" "${qsVersion}" "6.10"
198+
196199
ls -la /home/codespace
197200

198201
# Report result

0 commit comments

Comments
 (0)