Skip to content

Commit

Permalink
Universal: Patch for 'follow-redirect' - CVE-2022-0155 & CVE-2022-0536 (
Browse files Browse the repository at this point in the history
  • Loading branch information
samruddhikhandale authored Dec 19, 2022
1 parent 08995a5 commit 31ee293
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ NPM_PACKAGES_LIST="decode-uri-component
cd /usr/local/share/nvm/versions/node/v14*/lib/node_modules/npm
npm install ${NPM_PACKAGES_LIST}

# Temporary: Due to https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0536 & https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0155
rm -rf /usr/local/nvs/deps/node_modules/follow-redirects/*
curl -sSL https://github.com/follow-redirects/follow-redirects/archive/refs/tags/v1.15.2.tar.gz | tar -xzC /tmp 2>&1
mv /tmp/follow-redirects-1.15.2/* /usr/local/nvs/deps/node_modules/follow-redirects/

# Enables the oryx tool to generate manifest-dir which is needed for running the postcreate tool
DEBIAN_FLAVOR="focal-scm"
mkdir -p /opt/oryx && echo "vso-focal" > /opt/oryx/.imagetype
Expand Down

0 comments on commit 31ee293

Please sign in to comment.