Skip to content

[Snyk] Security upgrade @babel/preset-env from 7.12.13 to 7.22.6 - #325

Open
dotam99 wants to merge 1 commit into
mainfrom
snyk-fix-31a5df2239b21e5c0f01e496ed44e1dc
Open

[Snyk] Security upgrade @babel/preset-env from 7.12.13 to 7.22.6#325
dotam99 wants to merge 1 commit into
mainfrom
snyk-fix-31a5df2239b21e5c0f01e496ed44e1dc

Conversation

@dotam99

Copy link
Copy Markdown
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • package.json
    • package-lock.json

Vulnerabilities that will be fixed

With an upgrade:
SeverityPriority Score (*)IssueBreaking ChangeExploit Maturity
medium severity658/1000
Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
NoProof of Concept

(*) Note that the real score may have changed since the PR was raised.

Check the changes in this PR to ensure they won't cause issues with your project.


Note:You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

@guardrails

guardrailsBot commented Jul 4, 2023

Copy link
Copy Markdown

⚠️ We detected 99 security issues in this pull request:

Mode: paranoid | Total findings: 99 | Considered vulnerability: 99

Insecure Access Control (6)
SeverityDetailsDocs
MediumTitle: Tainted input passed to an open redirect (express)
returnres.redirect(301,externalSites[req.path])
📚
MediumTitle: Tainted input passed to an open redirect (express)
returnres.redirect(301,redirect)
📚
MediumTitle: Tainted input passed to an open redirect (express)
returnres.redirect(`https://enterprise.github.com/releases/${requestedVersion}.0/notes`)
📚
MediumTitle: Tainted input passed to an open redirect (express)
returnres.redirect(301,req.baseUrl+req.path.replace(/^\/en/,''))
📚
MediumTitle: Tainted input passed to an open redirect (express)
returnres.redirect(301,redirect)
📚
MediumTitle: Tainted input passed to an open redirect (express)
returnres.redirect(301,req.path.replace(redirectPattern,`/${language.code}`))
📚

More info on how to fix Insecure Access Control in JavaScript.


Insecure File Management (11)
SeverityDetailsDocs
HighTitle: Path Traversal from user input
📚
HighTitle: Path Traversal from user input
newHref=path.join('/',languageCode,href)
📚
HighTitle: Path Traversal from user input
newHref=path.join('/',languageCode,href)
📚
HighTitle: Path Traversal from user input
constmapTopicOrArticlePath=path.posix.join(categoryPath,pathParts[2])
📚
HighTitle: Path Traversal from user input
constcategoryPath=removeFPTFromPath(path.posix.join('/','en',req.context.currentVersion,'early-access',pathParts[0],pathParts[1]))
📚
HighTitle: Path Traversal from user input
title: product.title
📚
HighTitle: Path Traversal from user input
constcategoryPath=removeFPTFromPath(path.posix.join('/',req.context.currentLanguage,req.context.currentVersion,productPath,pathParts[1]))
📚
HighTitle: Path Traversal from user input
constproductPath=path.posix.join('/',req.context.currentProduct)
📚
HighTitle: Path Traversal from user input
href: removeFPTFromPath(path.posix.join('/',req.context.currentLanguage,req.context.currentVersion,productPath)),
📚
HighTitle: Path Traversal from user input
constproxyPath=path.join('/',requestedVersion,assetPath)
📚
HighTitle: Path Traversal from user input
consthref=removeFPTFromPath(path.join('/',context.currentLanguage,version,linkPath))
📚

More info on how to fix Insecure File Management in JavaScript.


Insecure Processing of Data (6)
SeverityDetailsDocs
HighTitle: Insecure Deserialization (js-yaml)
constdata=yaml.load(fs.readFileSync(fullpath,'utf8'),{ fullpath })
📚
HighTitle: Insecure Deserialization (js-yaml)
returnyaml.load(fs.readFileSync(filename,'utf8'),{ filename })
📚
MediumTitle: Tainted input passed to Express response
returnres.send(awaitliquid.parseAndRender(layouts['dev-toc'],req.context))
📚
MediumTitle: Tainted input passed to Express response
returnres.send(req.path.replace(/\//g,''))
📚
MediumTitle: Tainted input passed to Express response
returnres.send(awaitliquid.parseAndRender(layouts['enterprise-server-releases'],req.context))
📚
MediumTitle: Tainted input passed to Express response
res.send(addCsrf(req,output))
📚

More info on how to fix Insecure Processing of Data in JavaScript.


Insecure Use of Language/Framework API (42)
SeverityDetailsDocs
MediumTitle: User Controlled Method Invocation
schema.send(:own_orphan_types).clear
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constchangedFilesRelPaths=execSync('git diff --name-only origin/main | egrep "^translations/.*/.+.(yml|md)$"',{maxBuffer: 1024*1024*100}).toString().split('\n')
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constfixable=execSync(`cat ${fixableErrorsLog} | egrep "^translations/.*/(.+.md|.+.yml)$" | sed -e 's/^/- [ ] /' | uniq`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constfilesToAdd=execSync(`cat ${parsingErrorsLog}${renderingErrorsLog} | egrep "^translations/.*/(.+.md|.+.yml)$" | sed -e 's/^/- [ ] /' | uniq`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constallErrors=execSync('cat ~/docs-*').toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`git checkout main -- ${relativePath}`,{stdio: 'pipe'})
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constgithubBranch=execSync('git rev-parse --abbrev-ref HEAD',{cwd: githubRepoDir}).toString().trim()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync('git pull',{cwd: githubRepoDir})
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`${path.join(githubRepoDir,'bin/openapi')} bundle -o ${tempDocsDir} --include_unpublished`,{stdio: 'inherit'})
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`find ${tempDocsDir} -type f -name "*deref.json" -exec mv '{}' ${dereferencedPath} ';'`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constgitStatusOfFile=execSync(`git status --porcelain ${oldContentPath}`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`mv ${oldContentPath}${newContentPath}`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`git mv ${oldContentPath}${newContentPath}`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
awaitexec(`script/reset-translated-file.js --prefer-main ${file}`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constcurrentBranch=execSync('git symbolic-ref --short HEAD',{encoding: 'utf8'}).trim()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constfilenames=execSync('git diff --cached --name-only').toString().trim().split('\n')
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constresult=execSync(`${purgeCommand}${localizedUrl}`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constsecondResult=execSync(`${purgeCommand}${localizedUrl}`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`TEST_TRANSLATION=true npx jest content/lint-files > ${parsingErrorsLog}`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`script/test-render-translation.js > ${renderErrorsLog}`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`cat ${parsingErrorsLog}${renderErrorsLog} | egrep "^translations/.*/(.+.md|.+.yml)$" | uniq | xargs -L1 script/reset-translated-file.js --prefer-main`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`mkdir ${productDir}`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync(`git mv ${oldCategoryDir}${productDir}`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constgrepResults=execSync(grepCmd).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constchangedFilesRelPaths=execSync(cmd).toString().split('\n')
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constnewPath=execSync(`find ${newDotcomDir} -name ${filename}`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync('gem which graphql')
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync('npx prettier -w "**/*.{yml,yaml}"')
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constremoteClean=execSync(`${removeHiddenMembersScript}${tempSchemaFilePath}`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
execSync('npm run build',{stdio: 'inherit'})
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
currentBranch=execSync('git branch --show-current').toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
letbranchExists=execSync(`git ls-remote --heads ${earlyAccessFullRepo}${earlyAccessBranch}`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
branchExists=execSync(`git ls-remote --heads ${earlyAccessFullRepo}${earlyAccessBranch}`).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
cwd: earlyAccessCloningParentDir
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
exec(`git reset $(git merge-base ${base} HEAD)`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
exec('git add -A')
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
exec(`git commit -m "${message}"`)
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
while((optionsMatch=OptionsSyntax.exec(match.groups.options))){
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constchangedFiles=execSync('git diff --name-only HEAD').toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constchangedFilesRelPaths=execSync('git diff --name-only origin/main | egrep "^translations/.*/.+.md$"',{maxBuffer: 1024*1024*100})
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constgrepResults=execSync(grepCmd).toString()
📚
HighTitle: Child process (child_process) methods accept untrusted data to execute
constmatch=liquidVariableSyntax.exec(this.param)
📚

More info on how to fix Insecure Use of Language/Framework API in Ruby and JavaScript.


Insecure Use of Regular Expressions (1)
SeverityDetailsDocs
MediumTitle: Tainted input passed to Regular Expression
constenglishPath=req.path.replace(newRegExp(`^/${req.language}`),'/en')
📚

More info on how to fix Insecure Use of Regular Expressions in JavaScript.


Vulnerable Libraries (33)
SeverityDetails
Highpkg:npm/throng@5.0.0 (t) upgrade to: 4.17.21
Highpkg:npm/remark-rehype@5.0.0 (t) upgrade to: 0.0.3
Highpkg:npm/rimraf@3.0.0 (t) upgrade to: 3.0.5
Highpkg:npm/got@9.6.0 (t) upgrade to: 4.1.1, 10.2.7
Criticalpkg:npm/babel-loader@8.1.0 (t) upgrade to: 2.0.3, 1.4.2, 2.0.4, 3.2.1, 2.2.2, 1.2.6
Criticalpkg:npm/copy-webpack-plugin@6.4.1 (t) upgrade to: 4.4.16, 5.0.8, 6.1.7, 1.2.6, 2.2.2, 3.2.2, 6.1.1, 4.4.15, 4.4.18, 2.0.4, 3.2.1, 4.4.14, 6.1.2, 5.0.10, 5.0.6, 3.2.3, 5.0.7, 6.1.9, 2.0.3, 1.4.2, 3.0.5
Mediumpkg:npm/webpack@5.30.0 (t) upgrade to: 4.8.1, 5.14.2, 4.16.5
Highpkg:npm/lodash@4.17.20 (t) upgrade to: 4.17.21,4.17.21
Criticalpkg:npm/linkinator@2.13.1 (t) upgrade to: 6.0.1, 2.0.1, 3.0.5, 12.1.0, 2.6.7, 4.0.10, 3.0.1, 3.0.8, 4.0.1, 5.0.1, 1.0.7, 2.8.9, 10.2.7, 1.2.6, 4.1.1, 3.1.1, 2.0.0, 11.8.5
Highpkg:npm/express@4.17.1 (t) upgrade to: 4.17.3,6.10.3,6.9.7,6.8.3,6.7.3,6.6.1,6.5.3,6.4.1,6.3.3,6.2.4
Highpkg:npm/walk-sync@1.1.4 (t) upgrade to: 3.0.5
Informationalpkg:npm/morgan@1.9.1 (t) upgrade to: 3.1.0
Highpkg:npm/sass@1.32.8 (t) upgrade to: 6.0.1, 5.1.2
Highpkg:npm/rss-parser@3.12.0 (t) - no patch available
Criticalpkg:npm/browser-date-formatter@3.0.3 (t) upgrade to: 1.2.6, 1.0.7
Highpkg:npm/babel-preset-env@1.7.0 (t) upgrade to: 4.17.21, 3.1.0
Highpkg:npm/node-fetch@2.6.1 (t) upgrade to: 3.1.1,2.6.7
Informationalpkg:npm/algoliasearch@3.35.1 (t) upgrade to: 3.1.0
Highpkg:npm/hast-util-select@4.0.2 (t) upgrade to: 2.0.1
Criticalpkg:npm/mini-css-extract-plugin@1.4.1 (t) upgrade to: 2.0.4, 3.2.1, 1.2.6, 2.2.2, 2.0.3, 1.4.2
Highpkg:npm/remark-parse@7.0.2 (t) upgrade to: 0.0.3
Informationalpkg:npm/compression@1.7.4 (t) upgrade to: 3.1.0
Criticalpkg:npm/sass-loader@9.0.2 (t) upgrade to: 1.4.2, 2.0.4, 3.2.1, 1.2.6, 2.2.2, 2.0.3
Highpkg:npm/@babel/preset-env@7.22.6 (t) upgrade to: 4.17.21
Informationalpkg:npm/rehype-highlight@3.1.0 (t) upgrade to: 10.4.1
Criticalpkg:npm/css-loader@5.0.0 (t) upgrade to: 1.4.2, 2.0.4, 3.2.1, 3.1.31, 1.2.6, 2.2.2, 2.0.3
Highpkg:npm/cheerio@1.0.0-rc.3 (t) upgrade to: 4.17.21, 2.0.1
N/Apkg:npm/flat@5.0.0 (t) upgrade to: 5.0.1
Mediumpkg:npm/liquidjs@9.22.1 (t) upgrade to: 10.0.0
Mediumpkg:npm/webpack-cli@4.6.0 (t) upgrade to: 1.0.7
Criticalpkg:npm/resolve-url-loader@4.0.0 (t) upgrade to: 1.4.2, 2.0.4, 3.2.1, 1.2.6, 2.2.2, 2.0.3
Criticalpkg:npm/style-loader@1.2.1 (t) upgrade to: 1.2.6, 2.0.3, 1.4.2, 2.0.4, 3.2.1, 2.2.2
Highpkg:npm/@babel/plugin-transform-runtime@7.11.0 (t) upgrade to: 1.0.7, 4.17.21

More info on how to fix Vulnerable Libraries in JavaScript.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@dotam99@snyk-bot