hanhdt / vue-trix

Trix text editor component for Vue.js
https://nicedoc.io/hanhdt/vue-trix
MIT License
238 stars 36 forks source link

[Snyk] Security upgrade trix from 1.3.1 to 2.1.1 #427

Open hanhdt opened 4 months ago

hanhdt commented 4 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") | **663/1000**
**Why?** Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.4 | Cross-site Scripting (XSS)
[SNYK-JS-TRIX-6814378](https://snyk.io/vuln/SNYK-JS-TRIX-6814378) | Yes | Proof of Concept (*) Note that the real score may have changed since the PR was raised.
Commit messages
Package name: trix The new version differs by 250 commits.
  • 0c79bcb v2.1.1
  • 1a5c68a Merge pull request #1149 from basecamp/paste-html-sanitize
  • 14bac18 Sanitize HTML content in data-trix-* attributes
  • 1abe3d2 Test attachment content is sanitized
  • 841ff19 Merge pull request #1147 from basecamp/sanitize-noscript
  • 5e03f4a Sanitize noscript to prevent copy and paste XSS
  • 36c7aeb Merge pull request #1146 from basecamp/dependabot/npm_and_yarn/tar-6.2.1
  • c6023ed Bump tar from 6.2.0 to 6.2.1
  • 968ceda v2.1.0
  • bf8f52a Merge pull request #1138 from basecamp/custom-html-block-attributes
  • c1ee6c3 Merge pull request #1140 from basecamp/dependabot/npm_and_yarn/follow-redirects-1.15.6
  • b53531b Bump follow-redirects from 1.15.4 to 1.15.6
  • 54a8cd0 Default to empty HTML attributes
  • d631450 Allow custom HTML attributes in blocks
  • f7e676d Merge pull request #1136 from basecamp/dependabot/npm_and_yarn/ip-1.1.9
  • 8c70ee2 Bump ip from 1.1.8 to 1.1.9
  • 3f22606 v2.0.10
  • e8dec44 Merge pull request #1131 from basecamp/selected-ranges
  • cd9563c Use the target range to insert the replacement text
  • 10573a8 v2.0.9
  • 989ea6d Merge pull request #1130 from basecamp/non-sauce-ci
  • e18a170 Only run test on SauceLabs when SAUCE_ACCESS_KEY is set
  • 053a1a4 Merge pull request #1129 from basecamp/request-render
  • 4f4b54c Request render after inserting replacement text
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/hanhdt/project/fac96e4b-c3b5-42b9-baee-8e042d1d0b61?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/hanhdt/project/fac96e4b-c3b5-42b9-baee-8e042d1d0b61?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":"4559de2b-5287-444f-9a9f-c2d76677d597","prPublicId":"4559de2b-5287-444f-9a9f-c2d76677d597","dependencies":[{"name":"trix","from":"1.3.1","to":"2.1.1"}],"packageManager":"npm","projectPublicId":"fac96e4b-c3b5-42b9-baee-8e042d1d0b61","projectUrl":"https://app.snyk.io/org/hanhdt/project/fac96e4b-c3b5-42b9-baee-8e042d1d0b61?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-JS-TRIX-6814378"],"upgrade":["SNYK-JS-TRIX-6814378"],"isBreakingChange":true,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[663],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Cross-site Scripting (XSS)](https://learn.snyk.io/lesson/dom-based-xss/?loc=fix-pr)