sanity-io / demo-course-platform

An example Studio and Front End demonstrating different strategies for localization with Sanity.io
demo-course-platform.sanity.build
70 stars 19 forks source link

[Snyk] Security upgrade sanity from 3.16.1 to 3.31.0 #49

Open nicholasklem opened 8 months ago

nicholasklem commented 8 months ago

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: Severity | Priority Score (*) | Issue | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:------------------------- ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **631/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 6.2 | Missing Release of Resource after Effective Lifetime
[SNYK-JS-INFLIGHT-6095116](https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116) | No | Proof of Concept (*) Note that the real score may have changed since the PR was raised.
Commit messages
Package name: sanity The new version differs by 250 commits.
  • 37e207d v3.31.0
  • e0f6669 fix(comments): loading state (#5908)
  • 49fa240 feat(core): add Text Search API search strategy (#5785)
  • 9fc34a2 fix(core): allow `_dataset` for cross-dataset references in templates (#5889)
  • c9a1dd6 chore(deps): upgrade archiver, split2 dependencies (#5880)
  • 4159bca chore(search): refactor search to export necessary components and providers. (#5900)
  • 3670459 feat(core): export useWorkspaceLoader from core (#5898)
  • 174a616 feat(cli): --quickstart flag for ejecting server schemas (#5797)
  • 75ac3cf feat(ci): cache release dependencies (#5834)
  • eb5cd50 fix(comments): allow ranges to be collapsed (#5892)
  • 4ae88a0 fix(portable-text-editor): all paths must be checked (#5891)
  • ed87e2a fix(sanity): preserve form (as readOnly) when reconnecting (#5884)
  • 023e7e6 fix(core): updates to not show "cannot upload" on hover when using extension based accepts settings (#5881)
  • 7ed2b0f feat(comments): introduce inline commenting (#5606)
  • fa330a0 feat(portable-text-editor): range decorations (#5871)
  • 4926b78 fix(structure): provide better error handling if orderings contain invalid field (#5709)
  • 9ed5cca fix(core): check if previous state is null for unmounted component (#5724)
  • 6d61e94 feat(structure): support closing first collapsed `DocumentPanel` (#5867)
  • 84a0c90 feat(core): add `onFullScreenChange ` to Portable Text Input (#5879)
  • 2deebb1 fix(portable-text-editor): check that path is lengthy (#5875)
  • fc73437 fix(form): prevent drop event propagating outside of EditPortal component (#5813)
  • 16a5434 chore(deps): update dependency get-random-values-esm to v1.0.2 (#5856)
  • 1d41af7 feat(portable-text-editor): implement `isSelectionOverlapping` method (#5870)
  • f83e8e4 feat(portable-text-editor): preserve keys on undo/redo (#5805)
See the full diff
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](https://app.snyk.io/org/frontend-6c4/project/deec782c-fc9d-408b-a98a-67d73186b165?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/frontend-6c4/project/deec782c-fc9d-408b-a98a-67d73186b165?utm_source=github&utm_medium=referral&page=fix-pr/settings) 📚 [Read more about Snyk's upgrade and patch logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities) [//]: # (snyk:metadata:{"prId":"783c15aa-453f-4465-9941-2679c1af6ef3","prPublicId":"783c15aa-453f-4465-9941-2679c1af6ef3","dependencies":[{"name":"sanity","from":"3.16.1","to":"3.31.0"}],"packageManager":"npm","projectPublicId":"deec782c-fc9d-408b-a98a-67d73186b165","projectUrl":"https://app.snyk.io/org/frontend-6c4/project/deec782c-fc9d-408b-a98a-67d73186b165?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-JS-INFLIGHT-6095116"],"upgrade":["SNYK-JS-INFLIGHT-6095116"],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[631],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Learn about vulnerability in an interactive lesson of Snyk Learn.](https://learn.snyk.io/?loc=fix-pr)
vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
demo-course-platform ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 11:07am
demo-course-platform-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2024 11:07am
socket-security[bot] commented 8 months ago

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

Package New capabilities Transitives Size Publisher
npm/@sanity/eslint-config-studio@2.0.1 filesystem Transitive: environment, eval, shell, unsafe +365 82 MB stipsan
npm/@sanity/language-filter@3.1.2 Transitive: environment, eval, filesystem, network, shell, unsafe +652 610 MB sanity-io
npm/eslint-plugin-prettier@4.2.1 Transitive: environment, eval, filesystem, shell, unsafe +93 21.7 MB jounqin
npm/eslint-plugin-simple-import-sort@10.0.0 Transitive: environment, eval, filesystem, shell, unsafe +90 10.3 MB lydell
npm/eslint@8.43.0 environment, filesystem Transitive: eval, shell, unsafe +89 10.3 MB eslintbot
npm/husky@8.0.3 environment, filesystem, shell 0 6.44 kB typicode
npm/prettier@2.8.8 environment, filesystem, unsafe 0 11.2 MB prettier-bot
npm/sanity@3.31.0 Transitive: environment, eval, filesystem, network, shell, unsafe +645 603 MB ricokahler
npm/typescript@5.1.3 None 0 40.1 MB typescript-bot

🚮 Removed packages: npm/@formatjs/intl-localematcher@0.5.4, npm/@headlessui/react@1.7.18, npm/@heroicons/react@2.1.1, npm/@radix-ui/react-slot@1.0.2, npm/@sanity/client@6.11.1, npm/@sanity/overlays@2.3.6, npm/@sanity/preview-kit@5.0.11, npm/@sanity/react-loader@1.7.4, npm/@tailwindcss/typography@0.5.10, npm/autoprefixer@10.4.16, npm/clsx@2.0.0, npm/eslint-config-next@13.5.6, npm/groq@3.25.0, npm/negotiator@0.6.3, npm/next-sanity@7.0.10, npm/next@14.0.4, npm/tailwindcss@3.4.1, npm/usehooks-ts@2.9.4

View full report↗︎

socket-security[bot] commented 8 months ago

🚨 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 NoteSource
Install scripts npm/@sanity/eslint-config-studio@2.0.1
  • Install script: postinstall
  • Source: node patch-eslint

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/@sanity/eslint-config-studio@2.0.1