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/helper-validator-identifier@7.24.7 None 0 49.3 kB nicolo-ribaudo
npm/@babel/parser@7.24.7 None 0 1.89 MB nicolo-ribaudo
npm/@babel/types@7.24.7 environment 0 2.41 MB nicolo-ribaudo
npm/@types/babel-types@7.0.15 None 0 118 kB types
npm/@types/babylon@6.16.9 None 0 5.89 kB types
npm/acorn@7.4.1 None 0 1.21 MB marijn
npm/assert-never@1.2.1 None 0 4.17 kB aikoven
npm/babel-walk@3.0.0-canary-5 None 0 110 kB babel-walk-bot
npm/call-bind@1.0.7 None 0 22.1 kB ljharb
npm/clean-css@4.2.4 environment, filesystem, network 0 438 kB jakub.pawlowicz
npm/constantinople@4.0.1 None 0 35.6 kB forbeslindesay
npm/core-js@2.6.12 environment, eval, filesystem 0 2.26 MB zloirock
npm/define-data-property@1.1.4 None 0 30.9 kB ljharb
npm/es-define-property@1.0.0 None 0 11.8 kB ljharb
npm/es-errors@1.3.0 None 0 12.3 kB ljharb
npm/esutils@2.0.3 None 0 50.6 kB michaelficarra
npm/function-bind@1.1.2 None 0 31.4 kB ljharb
npm/get-intrinsic@1.2.4 eval 0 41.6 kB ljharb
npm/gopd@1.0.1 None 0 7.7 kB ljharb
npm/has-property-descriptors@1.0.2 None 0 10.9 kB ljharb
npm/has-proto@1.0.3 None 0 12 kB ljharb
npm/has-symbols@1.0.3 None 0 20.6 kB ljharb
npm/has-tostringtag@1.0.2 None 0 17.6 kB ljharb
npm/hasown@2.0.2 None 0 8.77 kB ljharb
npm/is-core-module@2.13.1 None 0 30.2 kB ljharb
npm/is-expression@4.0.0 None 0 6.12 kB forbeslindesay
npm/is-promise@2.2.2 None 0 2.75 kB forbeslindesay
npm/is-regex@1.1.4 None 0 30.1 kB ljharb
npm/pug-attrs@3.0.0 None 0 7.92 kB pug-bot
npm/pug-code-gen@3.0.3 None 0 29.1 kB pug-bot
npm/pug-error@2.1.0 None 0 23.1 kB pug-bot
npm/pug-filters@4.0.0 None 0 9.58 kB pug-bot
npm/pug-lexer@5.0.1 None 0 59.3 kB pug-bot
npm/pug-linker@4.0.0 None 0 8.57 kB pug-bot
npm/pug-load@3.0.0 filesystem 0 9.33 kB pug-bot
npm/pug-parser@6.0.0 None 0 35.8 kB pug-bot
npm/pug-runtime@3.0.1 filesystem 0 17 kB pug-bot
npm/pug-strip-comments@2.0.0 None 0 5.95 kB pug-bot
npm/pug-walk@2.0.0 None 0 9.61 kB pug-bot
npm/pug@3.0.0 environment, eval, filesystem 0 59.7 kB pug-bot
npm/resolve@1.22.8 environment, filesystem 0 145 kB ljharb
npm/set-function-length@1.2.2 None 0 14.7 kB ljharb
npm/supports-preserve-symlinks-flag@1.0.0 None 0 9.18 kB ljharb
npm/to-fast-properties@2.0.0 None 0 3.5 kB sindresorhus
npm/token-stream@1.0.0 None 0 5.53 kB timothygu
npm/void-elements@3.1.0 None 0 3.11 kB forbeslindesay
npm/with@7.0.2 None 0 40.3 kB with-bot

🚮 Removed packages: npm/@types/babylon@6.16.4, npm/clean-css@4.2.1, npm/core-js@2.6.3, npm/esutils@2.0.2, npm/function-bind@1.1.1, npm/has@1.0.3, npm/is-regex@1.0.4, npm/pug-error@1.3.2, npm/pug-filters@3.1.0, npm/pug-lexer@4.0.0, npm/pug-linker@3.0.5, npm/pug-load@2.0.11, npm/pug-parser@5.0.0, npm/pug-runtime@2.0.4, npm/pug-strip-comments@1.0.3, npm/pug-walk@1.1.7, npm/pug@2.0.3, npm/resolve@1.10.0

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/core-js@2.6.12
  • 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/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/core-js@2.6.12

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