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

[Security] Bump django-debug-toolbar from 2.2 to 3.2.1 #277

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

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps django-debug-toolbar from 2.2 to 3.2.1.

Changelog

Sourced from django-debug-toolbar's changelog.

3.2.1 (2021-04-14)

  • Fixed SQL Injection vulnerability, CVE-2021-30459. The toolbar now calculates a signature on all fields for the SQL select, explain, and analyze forms.
  • Changed djdt.cookie.set() to set sameSite=Lax by default if callers do not provide a value.
  • Added PRETTIFY_SQL configuration option to support controlling SQL token grouping. By default it's set to True. When set to False, a performance improvement can be seen by the SQL panel.
  • Fixed issue with toolbar expecting URL paths to start with /__debug__/ while the documentation indicates it's not required.

3.2 (2020-12-03)

  • Moved CI to GitHub Actions: https://github.com/jazzband/django-debug-toolbar/actions
  • Stopped crashing when request.GET and request.POST are dictionaries instead of QueryDict instances. This isn't a valid use of Django but django-debug-toolbar shouldn't crash anyway.
  • Fixed a crash in the history panel when sending a JSON POST request with invalid JSON.
  • Added missing signals to the signals panel by default.
  • Documented how to avoid CORS errors now that we're using JavaScript modules.
  • Verified support for Python 3.9.
  • Added a css and a js template block to debug_toolbar/base.html to allow overriding CSS and JS.

3.2a1 (2020-10-19)

  • Fixed a regression where the JavaScript code crashed with an invalid CSS selector when searching for an element to replace.
  • Replaced remaining images with CSS.
  • Continued refactoring the HTML and CSS code for simplicity, continued improving the use of semantic HTML.
  • Stopped caring about prehistoric browsers for good. Started splitting up the JavaScript code to take advantage of JavaScript modules.
  • Continued removing unused CSS.
  • Started running Selenium tests on Travis CI.
  • Added a system check which prevents using django-debug-toolbar without any enabled panels.
  • Added Panel.run_checks() <debug_toolbar.panels.Panel.run_checks> for panels to verify the configuration before the application starts.
  • Validate the static file paths specified in STATICFILES_DIRS exist via ~debug_toolbar.panels.staticfiles.StaticFilesPanel
  • Introduced prettier to format the frontend code.
  • Started accessing history views using GET requests since they do not change state on the server.
  • Fixed a bug where unsuccessful requests (e.g. network errors) were silently ignored.
  • Started spellchecking the documentation.
  • Removed calls to the deprecated request.is_ajax() method. These calls were unnecessary now that most endpoints return JSON anyway.
  • Removed support for Python 3.5.

3.1 (2020-09-21)

  • Fixed a crash in the history panel when sending an empty JSON POST request.
  • Made make example also set up the database and a superuser account.
  • Added a Makefile target for regenerating the django-debug-toolbar screenshot.
  • Added automatic escaping of panel titles resp. disallowed HTML tags.
  • Removed some CSS
  • Restructured the SQL stats template.
  • Changed command line examples to prefer python -m pip to pip.

3.0 (2020-09-20)

... (truncated)

Commits

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:

  • 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)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Apr 16, 2021
@dependabot-preview
Copy link
Contributor Author

We've just been alerted that this update fixes a security vulnerability:

Sourced from The GitHub Security Advisory Database.

SQL Injection via in django-debug-toolbar

Impact

With Django Debug Toolbar attackers are able to execute SQL by changing the raw_sql input of the SQL explain, analyze or select forms and submitting the form.

NOTE: This is a high severity issue for anyone using the toolbar in a production environment.

Generally the Django Debug Toolbar team only maintains the latest version of django-debug-toolbar, but an exception was made because of the high severity of this issue.

Patches

Please upgrade to one of the following versions, depending on the major version you're using:

Affected versions: [">= 2.0.0, < 2.2.1"]

@dependabot-preview dependabot-preview bot changed the title Bump django-debug-toolbar from 2.2 to 3.2.1 [Security] Bump django-debug-toolbar from 2.2 to 3.2.1 Apr 16, 2021
@dependabot-preview dependabot-preview bot added the security Pull requests that address a security vulnerability label Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants