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 email-templates from 8.1.0 to 11.1.1 #465

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

titanism
Copy link
Contributor

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 yarn dependencies of this project.

Snyk changed the following file(s):

  • template/package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning ``` Failed to update the yarn.lock, please update manually before merging. ```

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":"email-templates","from":"8.1.0","to":"11.1.1"}],"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":"dc6c7364-3826-45fd-b2d1-32f94ff8f4b7","prPublicId":"dc6c7364-3826-45fd-b2d1-32f94ff8f4b7","packageManager":"yarn","priorityScoreList":[696],"projectPublicId":"deecffb5-5423-445c-8826-70aff63668ac","projectUrl":"https://app.snyk.io/org/titanism/project/deecffb5-5423-445c-8826-70aff63668ac?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","pr-warning-shown","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/email-templates@11.1.1 environment, filesystem 0 48 kB titanism
npm/factor-bundle@2.5.0 environment, filesystem 0 48 kB substack
npm/factory-girl@5.0.4 None 0 755 kB aexmachina
npm/fast-safe-stringify@2.1.1 None 0 39.7 kB matteo.collina
npm/fixpack@4.0.0 filesystem 0 9.88 kB henrikjoreteg
npm/font-awesome-assets@0.0.9 filesystem 0 151 kB titanism
npm/gemoji@6.1.0 None 0 395 kB wooorm
npm/get-port@5.1.1 network 0 8.74 kB sindresorhus
npm/github-markdown-css@4.0.0 None 0 20 kB sindresorhus
npm/globby@11.1.0 filesystem 0 21.8 kB sindresorhus
npm/gulp-babel@8.0.0 unsafe 0 8.91 kB loganfsmyth
npm/gulp-cli@2.3.0 environment, filesystem, network, unsafe 0 60.9 kB phated
npm/gulp-concat@2.6.1 None 0 6.63 kB contra
npm/gulp-if@3.0.0 None 0 45 kB robrich
npm/gulp-imagemin@7.1.0 None +1 41.5 kB sindresorhus
npm/gulp-livereload@4.0.2 None 0 23.6 kB vohof
npm/gulp-postcss@9.0.1 None 0 14.3 kB unsoundscapes
npm/gulp-pug-linter@1.5.0 None 0 755 kB ilyakam
npm/gulp@4.0.2 None 0 20.9 kB phated
npm/hasha@5.2.2 filesystem 0 16 kB sindresorhus
npm/highlight.js@10.7.3 None 0 1.71 MB highlightjs_bot
npm/html5-history-api@4.2.10 None 0 122 kB devote
npm/humanize-string@2.1.0 None 0 3.8 kB sindresorhus
npm/ip@1.1.5 None 0 35.7 kB indutny
npm/is-string-and-not-blank@0.0.2 None 0 13.5 kB niftylettuce
npm/isbot@3.4.6 None 0 56.7 kB omrilotan
npm/jquery-lazy@1.7.11 None 0 146 kB eisbehr
npm/jquery-placeholder@2.3.1 None 0 16.1 kB feross
npm/jquery.pointer-events-polyfill@0.2.4 None 0 33.5 kB screeny05
npm/jquery@3.5.1 None 0 1.32 MB timmywil
npm/koa-ctx-paginate@0.0.6 None 0 17.1 kB niftylettuce
npm/koa-views-render@0.0.1 None 0 156 kB niftylettuce
npm/lodash@4.17.21 None 0 1.41 MB bnjmnt4n
npm/mandarin@4.2.0 environment, filesystem 0 18.9 kB niftylettuce
npm/manifest-rev@1.0.3 environment 0 12.7 kB shaunwarman
npm/markdown-it-emoji@2.0.2 None 0 201 kB vitaly
npm/markdown-it-github-headings@2.0.0 None 0 17.6 kB flet
npm/markdown-it-highlightjs@3.6.0 None 0 7.28 kB valeriangalliat
npm/markdown-it-task-checkbox@1.0.6 None 0 76.9 kB linsir
npm/markdown-it@12.3.2 None 0 553 kB vitaly
npm/mongodb-memory-server@6.10.0 None 0 3.88 kB nodkz
npm/mongoose-common-plugin@2.0.2 None 0 18.7 kB niftylettuce
npm/mongoose-json-select@0.2.1 None 0 8.18 kB nkzawa
npm/mongoose-omit-common-fields@0.0.6 None 0 11.6 kB niftylettuce
npm/mongoose-unique-validator@2.0.3 None 0 70.4 kB viveleroi
npm/mongoose@5.13.14 network +1 1.97 MB vkarpov15
npm/nodemailer-base64-to-s3@3.0.2 environment, filesystem 0 648 kB niftylettuce
npm/nodemailer@6.7.3 environment, filesystem, network, shell 0 481 kB andris
npm/numeral@2.0.6 None 0 336 kB adamwdraper
npm/otplib@12.0.1 None 0 25.6 kB geraldyeo
npm/p-map@4.0.0 None 0 8.69 kB sindresorhus
npm/p-series@2.1.0 None 0 5.17 kB sindresorhus
npm/parse-logs@1.0.0 None 0 21.7 kB niftylettuce
npm/passport-local-mongoose@6.3.0 None 0 42.8 kB saintedlama
npm/passport-otp-strategy@1.0.1 None +1 205 kB ejhayes
npm/pino@6.14.0 None 0 337 kB matteo.collina
npm/pluralize@8.0.0 None 0 17.7 kB blakeembrey
npm/popper.js@1.16.1 None 0 1.72 MB fezvrasta
npm/prepare-stack-trace@0.0.4 None 0 10.1 kB niftylettuce
npm/pug@3.0.2 environment, eval, filesystem 0 59.7 kB pug-bot
npm/qrcode@1.5.0 filesystem 0 182 kB soldair
npm/qs@6.10.3 None 0 216 kB ljharb
npm/reserved-email-addresses-list@0.0.8 None 0 21.6 kB niftylettuce
npm/rev-hash@3.0.0 None 0 3.32 kB sindresorhus
npm/sanitize-html@2.7.0 None 0 75.6 kB boutell
npm/signale@1.4.0 None 0 37.2 kB klaussinani
npm/speakingurl@14.0.1 None 0 167 kB pid
npm/stacktrace-js@2.0.2 None 0 1.46 MB eriwen
npm/striptags@3.2.0 None 0 17.9 kB ericnorris
npm/superagent@6.1.0 environment, filesystem, network 0 744 kB niftylettuce
npm/sweetalert2@8.19.0 None 0 562 kB limonte
npm/titleize@2.1.0 None 0 3.19 kB sindresorhus
npm/uncaught@0.0.5 None 0 30.7 kB al88
npm/validator@13.7.0 None 0 646 kB profnandaa
npm/zxcvbn@4.4.2 None 0 3.46 MB wheels

🚮 Removed packages: npm/@babel/code-frame@7.16.7, npm/@babel/compat-data@7.17.7, npm/@babel/helper-compilation-targets@7.17.7, npm/@babel/helper-create-class-features-plugin@7.17.9, npm/@babel/helper-function-name@7.17.9, npm/@babel/helper-member-expression-to-functions@7.17.7, npm/@babel/helper-module-imports@7.16.7, npm/@babel/helper-module-transforms@7.17.7, npm/@babel/helper-plugin-utils@7.16.7, npm/@babel/highlight@7.17.9, npm/@babel/parser@7.17.9, npm/@babel/plugin-proposal-unicode-property-regex@7.16.7, npm/@babel/plugin-transform-dotall-regex@7.16.7, npm/@babel/runtime@7.17.9, npm/@babel/traverse@7.17.9, npm/@babel/types@7.17.0, npm/@grpc/proto-loader@0.6.9, npm/@jridgewell/trace-mapping@0.3.9, npm/@nodelib/fs.stat@2.0.5, npm/@protobufjs/aspromise@1.1.2, npm/@sinonjs/commons@1.8.3, npm/@tootallnate/once@1.1.2, npm/@types/babel-types@7.0.11, npm/@types/bson@4.0.5, npm/@types/json-schema@7.0.11, npm/@types/long@4.0.2, npm/@types/mdast@3.0.10, npm/@types/minimatch@3.0.5, npm/@types/node@17.0.29, npm/@types/unist@2.0.6, npm/acorn-jsx@5.3.2, npm/acorn-node@1.8.2, npm/acorn@8.7.1, npm/ajv@6.12.6, npm/ansi-escapes@4.3.2, npm/arrify@2.0.1, npm/asap@2.0.6, npm/assert@1.5.0, npm/autoprefixer@9.8.8, npm/base64-js@1.5.1, npm/bin-wrapper@4.1.0, npm/bl@4.1.0, npm/bn.js@5.2.0, npm/boolbase@1.0.0, npm/brorand@1.1.0, npm/browser-pack@6.1.0, npm/browserify-aes@1.2.0, npm/browserify-rsa@4.1.0, npm/browserify-zlib@0.2.0, npm/browserslist@4.20.3, npm/bson@1.1.6, npm/buffer@5.2.1, npm/bytes@3.1.2, npm/cached-path-relative@1.1.0, npm/caniuse-lite@1.0.30001332, npm/capitalize@2.0.4, npm/caw@2.0.1, npm/chokidar@3.5.3, npm/cipher-base@1.0.4, npm/cli-boxes@2.2.1, npm/clone-response@1.0.2, npm/combine-source-map@0.8.0, npm/common-tags@1.8.2, npm/compressible@2.0.18, npm/config-chain@1.1.13, npm/console-control-strings@1.1.0, npm/constants-browserify@1.0.0, npm/content-disposition@0.5.4, npm/convert-source-map@1.8.0, npm/cookiejar@2.1.3, npm/copy-to@2.0.1, npm/core-js-compat@3.22.2, npm/core-js@2.6.12, npm/create-hash@1.2.0, npm/create-hmac@1.1.7, npm/crypto-browserify@3.12.0, npm/css-color-names@0.0.4, npm/debug@4.3.4, npm/decompress-response@3.3.0, npm/decompress-tar@4.1.1, npm/decompress@4.2.1, npm/deep-equal@1.0.1, npm/deep-is@0.1.4, npm/denque@1.5.1, npm/depd@1.1.2, npm/dom-serializer@1.4.1, npm/domain-browser@1.2.0, npm/domhandler@4.3.1, npm/domutils@2.8.0, npm/dot-prop@5.3.0, npm/duplexer2@0.1.4, npm/duplexify@4.1.2, npm/ecdsa-sig-formatter@1.0.11, npm/email-templates@8.1.0, npm/encodeurl@1.0.2, npm/end-of-stream@1.4.4, npm/enquirer@2.3.6, npm/env-editor@0.4.2, npm/error-ex@1.3.2, npm/es-abstract@1.19.5, npm/es5-ext@0.10.61, npm/es6-iterator@2.0.3, npm/es6-symbol@3.1.3, npm/es6-weak-map@2.0.3, npm/escape-html@1.0.3, npm/eslint-plugin-import@2.26.0, npm/eslint-plugin-prettier@3.4.1, npm/eslint-scope@5.1.1, npm/eslint-template-visitor@2.3.2, npm/eslint-utils@2.1.0, npm/espree@7.3.1, npm/espurify@2.1.1, npm/esquery@1.4.0, npm/estraverse@4.3.0, npm/esutils@2.0.3, npm/evp_bytestokey@1.0.3, npm/expand-tilde@2.0.2, npm/jsonstream@1.3.5

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.9
  • Install script: postinstall
  • Source: node scripts/postinstall || echo "ignore"
  • orphan: npm/core-js@2.6.9
🚫
Install scripts npm/mongodb-memory-server@6.10.0
  • Install script: postinstall
  • Source: node ./postinstall.js
🚫

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.9
  • @SocketSecurity ignore npm/mongodb-memory-server@6.10.0

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