Skip to content

Commit 629bd6c

Browse files
CVE 2024 21538 fixed (#1911)
1 parent 2c8b2c4 commit 629bd6c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ RUN $APT_UPDATE && $APT_INSTALL \
2727
unzip software-properties-common apt-transport-https \
2828
openjdk-11-jdk xvfb siege apache2-utils git make nodejs locales tsung libtool libssl-dev libyaml-dev libxml2-dev libxslt-dev
2929

30+
# force npm to use cross-spawn@7.0.5, this block can be removed when new version of nodejs uses cross-spawn@7.0.5
31+
RUN npm_root=$(npm root -g) \
32+
&& npm pack cross-spawn@7.0.5 -q \
33+
&& mkdir -p "$npm_root/npm/node_modules/cross-spawn" \
34+
&& tar -xzf cross-spawn-7.0.5.tgz \
35+
--strip-components=1 \
36+
-C "$npm_root/npm/node_modules/cross-spawn" \
37+
&& rm cross-spawn-7.0.5.tgz
38+
3039
# Install .NET sdk
3140
# check this page for the links and hash
3241
# https://dotnetcli.azureedge.net/dotnet/release-metadata/8.0/releases.json

0 commit comments

Comments
 (0)