Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Security upgrade pug from 2.0.3 to 3.0.0 #76

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Jun 25, 2024

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


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Improper Control of Generation of Code ('Code Injection')
SNYK-JS-PUGCODEGEN-7086056
  696  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Improper Control of Generation of Code ('Code Injection')

[//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"pug","from":"2.0.3","to":"3.0.0"}],"env":"prod","issuesToFix":[{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-PUGCODEGEN-7086056","priority_score":696,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Improper Control of Generation of Code ('Code Injection')"}],"prId":"29b2d698-9daf-4bf2-88ac-64f8842a2e3e","prPublicId":"29b2d698-9daf-4bf2-88ac-64f8842a2e3e","packageManager":"npm","priorityScoreList":[696],"projectPublicId":"cc88e8e4-8929-4aa0-8c3c-df43b285400d","projectUrl":"https://app.snyk.io/org/fengmk2/project/cc88e8e4-8929-4aa0-8c3c-df43b285400d?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","priorityScore"],"type":"auto","upgrade":["SNYK-JS-PUGCODEGEN-7086056"],"vulns":["SNYK-JS-PUGCODEGEN-7086056"],"patch":[],"isBreakingChange":true,"remediationStrategy":"vuln"}'

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] None 0 49.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 1.89 MB nicolo-ribaudo
npm/@babel/[email protected] environment 0 2.41 MB nicolo-ribaudo
npm/@types/[email protected] None 0 118 kB types
npm/@types/[email protected] None 0 5.89 kB types
npm/[email protected] None 0 1.21 MB marijn
npm/[email protected] None 0 4.17 kB aikoven
npm/[email protected] None 0 110 kB babel-walk-bot
npm/[email protected] None 0 22.1 kB ljharb
npm/[email protected] environment, filesystem, network 0 438 kB jakub.pawlowicz
npm/[email protected] None 0 35.6 kB forbeslindesay
npm/[email protected] environment, eval, filesystem 0 2.26 MB zloirock
npm/[email protected] None 0 30.9 kB ljharb
npm/[email protected] None 0 11.8 kB ljharb
npm/[email protected] None 0 12.3 kB ljharb
npm/[email protected] None 0 50.6 kB michaelficarra
npm/[email protected] None 0 31.4 kB ljharb
npm/[email protected] eval 0 41.6 kB ljharb
npm/[email protected] None 0 7.7 kB ljharb
npm/[email protected] None 0 10.9 kB ljharb
npm/[email protected] None 0 12 kB ljharb
npm/[email protected] None 0 20.6 kB ljharb
npm/[email protected] None 0 17.6 kB ljharb
npm/[email protected] None 0 8.77 kB ljharb
npm/[email protected] None 0 30.2 kB ljharb
npm/[email protected] None 0 6.12 kB forbeslindesay
npm/[email protected] None 0 2.75 kB forbeslindesay
npm/[email protected] None 0 30.1 kB ljharb
npm/[email protected] None 0 7.92 kB pug-bot
npm/[email protected] None 0 29.1 kB pug-bot
npm/[email protected] None 0 23.1 kB pug-bot
npm/[email protected] None 0 9.58 kB pug-bot
npm/[email protected] None 0 59.3 kB pug-bot
npm/[email protected] None 0 8.57 kB pug-bot
npm/[email protected] filesystem 0 9.33 kB pug-bot
npm/[email protected] None 0 35.8 kB pug-bot
npm/[email protected] filesystem 0 17 kB pug-bot
npm/[email protected] None 0 5.95 kB pug-bot
npm/[email protected] None 0 9.61 kB pug-bot
npm/[email protected] environment, eval, filesystem 0 59.7 kB pug-bot
npm/[email protected] environment, filesystem 0 145 kB ljharb
npm/[email protected] None 0 14.7 kB ljharb
npm/[email protected] None 0 9.18 kB ljharb
npm/[email protected] None 0 3.5 kB sindresorhus
npm/[email protected] None 0 5.53 kB timothygu
npm/[email protected] None 0 3.11 kB forbeslindesay
npm/[email protected] None 0 40.3 kB with-bot

🚮 Removed packages: npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants