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

chore(deps): bump @braintree/sanitize-url and mermaid in /web #575

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 2, 2022

Bumps @braintree/sanitize-url to 6.0.0 and updates ancestor dependency mermaid. These dependencies need to be updated together.

Updates @braintree/sanitize-url from 3.1.0 to 6.0.0

Changelog

Sourced from @​braintree/sanitize-url's changelog.

6.0.0

Breaking Changes

  • Decode HTML characters automatically that would result in an XSS vulnerability when rendering links via a server rendered HTML file
// decodes to javacript:alert('XSS')
const vulnerableUrl =
  "&[#0000106](https://github.com/braintree/sanitize-url/issues/0000106)&[#0000097](https://github.com/braintree/sanitize-url/issues/0000097)&[#0000118](https://github.com/braintree/sanitize-url/issues/0000118)&[#0000097](https://github.com/braintree/sanitize-url/issues/0000097)&[#0000115](https://github.com/braintree/sanitize-url/issues/0000115)&[#0000099](https://github.com/braintree/sanitize-url/issues/0000099)&[#0000114](https://github.com/braintree/sanitize-url/issues/0000114)&[#0000105](https://github.com/braintree/sanitize-url/issues/0000105)&[#0000112](https://github.com/braintree/sanitize-url/issues/0000112)&[#0000116](https://github.com/braintree/sanitize-url/issues/0000116)&[#0000058](https://github.com/braintree/sanitize-url/issues/0000058)&[#0000097](https://github.com/braintree/sanitize-url/issues/0000097)&[#0000108](https://github.com/braintree/sanitize-url/issues/0000108)&[#0000101](https://github.com/braintree/sanitize-url/issues/0000101)&[#0000114](https://github.com/braintree/sanitize-url/issues/0000114)&[#0000116](https://github.com/braintree/sanitize-url/issues/0000116)&[#0000040](https://github.com/braintree/sanitize-url/issues/0000040)&[#0000039](https://github.com/braintree/sanitize-url/issues/0000039)&[#0000088](https://github.com/braintree/sanitize-url/issues/0000088)&[#0000083](https://github.com/braintree/sanitize-url/issues/0000083)&[#0000083](https://github.com/braintree/sanitize-url/issues/0000083)&[#0000039](https://github.com/braintree/sanitize-url/issues/0000039)&[#0000041](https://github.com/braintree/sanitize-url/issues/0000041)";
sanitizeUrl(vulnerableUrl); // 'about:blank'
const okUrl = "[https://example.com/](https://example.com/)" + vulnerableUrl;
// since the javascript bit is in the path instead of the protocol
// this is successfully sanitized
sanitizeUrl(okUrl); // '[https://example.com/javascript:alert('XSS')](https://example.com/javascript:alert('XSS'));

5.0.2

5.0.1

5.0.0

Breaking Changes

4.1.1

4.1.0

  • Add typescript types

4.0.1

  • Fix issue where urls with accented characters were incorrectly sanitized

4.0.0

Breaking Changes

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by [braintree](https://www.npmjs.com/~braintree), a new releaser for @​braintree/sanitize-url since your current version.


Updates mermaid from 8.5.0 to 9.1.7

Release notes

Sourced from [mermaid's releases](https://github.com/knsv/mermaid/releases).

9.1.7

Release Notes

Features & Bug Fixes

Dependencies Updates

🎉 Thanks to all contributors helping with this release! 🎉

9.1.6

Release Notes

Bug fixes

Docs

Chores

🎉 Thanks to all contributors helping with this release! 🎉

9.0.1

Release Notes

🐛 Bug Fixes

🎉 Thanks to all contributors helping with this release! 🎉

... (truncated)

Changelog

Sourced from [mermaid's changelog](https://github.com/mermaid-js/mermaid/blob/develop/docs/CHANGELOG.md).

THIS IS AN AUTOGENERATED FILE. DO NOT EDIT. Please edit the corresponding file in packages/mermaid/src/docs.

Change Log

All changes are in descending order, beginning with the newest (latest) version.

Unreleased

[Full Changelog](https://github.com/knsv/mermaid/compare/8.7.0...HEAD)

8.7.0 (2020-08-09)

🔖 [Release Notes](https://github.com/mermaid-js/mermaid/releases/tag/8.7.0) | 📜 [Full Changelog](https://github.com/mermaid-js/mermaid/compare/8.6.0...8.7.0)

This version brings with it a system for [dynamic and integrated configuration of the diagram themes](https://github.com/mermaid-js/mermaid/blob/develop/docs/theming.md). The objective of this is to increase the customizability of mermaid and the ease of Styling, with the customization of themes through the %%init%% directive and initialize calls.

Themes follow and build upon the Levels of Configuration and employ directives to modify and create custom configurations, as they were introduced in Version [8.6.0](https://github.com/mermaid-js/mermaid/blob/develop/getting-started/8.6.0_docs.md).

These Theming Configurations, similar to directives, will also be made applicable in the Live-Editor, for easier styling.

Site-wide Themes

Site-wide themes are still declared via initialize by site owners.

Example of Initalize call setting theme to base:

mermaidAPI.initialize({
  securityLevel: 'loose',
  theme: 'base',
});

Notes: Only site owners can use the mermaidAPI.initialize call, to set values. Site-Users will have to use %%init%% to modify or create the theme for their diagrams.

Themes at the Local or Current Level

When Generating a diagram using on a webpage that supports mermaid. It is also possible to override site-wide theme settings locally, for a specific diagram, using directives, as long as it is not prohibited by the secure array.

Following is an example:

%%{init: {'theme':'base'}}%%
  graph TD
    a --> b

... (truncated)

Commits
  • See full diff in [compare view](https://github.com/knsv/mermaid/commits/v9.1.7)

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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

┆Issue is synchronized with this Trello card

Bumps [@braintree/sanitize-url](https://github.com/braintree/sanitize-url) to 6.0.0 and updates ancestor dependency [mermaid](https://github.com/knsv/mermaid). These dependencies need to be updated together.


Updates `@braintree/sanitize-url` from 3.1.0 to 6.0.0
- [Release notes](https://github.com/braintree/sanitize-url/releases)
- [Changelog](https://github.com/braintree/sanitize-url/blob/main/CHANGELOG.md)
- [Commits](braintree/sanitize-url@v3.1.0...v6.0.0)

Updates `mermaid` from 8.5.0 to 9.1.7
- [Release notes](https://github.com/knsv/mermaid/releases)
- [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/docs/CHANGELOG.md)
- [Commits](https://github.com/knsv/mermaid/commits/v9.1.7)

---
updated-dependencies:
- dependency-name: "@braintree/sanitize-url"
  dependency-type: indirect
- dependency-name: mermaid
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from moul as a code owner October 2, 2022 07:40
@dependabot dependabot bot added dependencies javascript Pull requests that update Javascript code labels Oct 2, 2022
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Oct 2, 2022
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 24, 2023

Superseded by #642.

@dependabot dependabot bot closed this Feb 24, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/web/braintree/sanitize-url-and-mermaid-6.0.0 branch February 24, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies javascript Pull requests that update Javascript code 🔍 Ready for Review Pull Request is not reviewed yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants