saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
770 stars 672 forks source link

[Security] Bump dompurify from 2.0.7 to 2.0.17 #970

Closed dependabot-preview[bot] closed 3 years ago

dependabot-preview[bot] commented 3 years ago

Bumps dompurify from 2.0.7 to 2.0.17. This update includes a security fix.

Vulnerabilities fixed

Sourced from The GitHub Security Advisory Database.

Cross-site Scripting in dompurify Cure53 DOMPurify before 2.0.17 allows mutation XSS. This occurs because a serialize-parse roundtrip does not necessarily return the original DOM tree, and a namespace can change from HTML to MathML, as demonstrated by nesting of FORM elements.

Affected versions: < 2.0.17

Release notes

Sourced from dompurify's releases.

DOMPurify 2.0.17

  • Fixed another bypass causing mXSS by using MathML

DOMPurify 2.0.16

  • Fixed an mXSS-based bypass caused by nested forms inside MathML
  • Fixed a security error thrown on older Chrome on Android versions, see #470

Credits for the bypass go to Michał Bentkowski (@securityMB) of Securitum who spotted the bug in Chrome, turned it into another DOMPurify bypass, reported and helped verifying the fix :bowing_man: :bowing_woman:

DOMPurify 2.0.15

  • Added a renovated test suite, thanks @peernohell
  • Fixed some minor linter warnings

DOMPurify 2.0.14

  • Fixed a problem with the documentMode default value

DOMPurify 2.0.12

  • Fixed a minor bug when working with Trusted Types
  • Fixed some typos in a demo file
  • Fixed some wordings in code and docs

DOMPurify 2.0.11

  • Fixed faulty behavior for non breaking space characters
  • Added ADD_DATA_URI_TAGS directive to allow customizing Data URI tag behavior

DOMPurify 2.0.10

  • Fixed a dependency problem causing builds to break
  • Fixed a test in Chrome 83 covering Trusted Types

DOMPurify 2.0.9

  • Removed a meanwhile useless parser check
  • Added countless new attributes to whitelist
  • Added whole new build and system
  • Added license tag to compressed files
  • Updated README for more clarity

DOMPurify 2.0.8

  • Fixed a bypass that can be abused in case SAFE_FOR_JQUERY is used with jQuery 3.x, thanks @masatokinugawa :bowing_woman:
  • Added new elements to whitelist, thanks @chris-morgan
  • Added first layer of prototype poisoning protection, thanks @dejang
  • Added better controls for uponSanitizeAttribute, thanks @devinrhode2
  • Added demo for node removal, thanks @mikesnare
Commits
  • f04574b chore: preparing 2.0.17 release
  • 02724b8 fix: attemtping to fix another mutation behavior
  • 63061bf chore: Preparing 2.0.16 release
  • 95b7ad2 See #470
  • ce22c8c fix: Attempting to fix a MathML-based mXSS pattern
  • c025bc8 chore: preparing 2.0.15 release
  • 10ed33f fix: changed the linter settings to be more tolerant
  • 5922db6 Merge branch 'main' of git@github.com:cure53/DOMPurify.git into main
  • 7f6dfe2 docs: added peernohell to list of contributors
  • 4743c0b Merge pull request #464 from peernohell/main
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)