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 flask from 0.12.2 to 1.0.3 #45

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

Conversation

dependabot-preview[bot]
Copy link

Bumps flask from 0.12.2 to 1.0.3. This update includes security fixes.

Vulnerabilities fixed

Sourced from The GitHub Security Advisory Database.

Moderate severity vulnerability that affects flask
The Pallets Project flask version Before 0.12.3 contains a CWE-20: Improper Input Validation vulnerability in flask that can result in Large amount of memory usage possibly leading to denial of service. This attack appear to be exploitable via Attacker provides JSON data in incorrect encoding. This vulnerability appears to have been fixed in 0.12.3.

Affected versions: < 0.12.3

Release notes

Sourced from flask's releases.

1.0.2

This release includes bug fixes and minor changes since 1.0.1. See the changelog for details.

Install or Upgrade

Install from PyPI with pip:

pip install -U Flask

1.0.1

This release includes bug fixes and minor changes since 1.0. See the changelog for details.

Install or Upgrade

Install from PyPI with pip:

pip install -U Flask

1.0

The Pallets team is pleased to release Flask 1.0. [Read the announcement on our blog.](https://www.palletsprojects.com/blog/flask-1-0-released/

There are over a year's worth of changes in this release. Many features have been improved or changed. Read the changelog to understand how your project's code will be affected.

JSON Security Fix

Flask previously decoded incoming JSON bytes using the content type of the request. Although JSON should only be encoded as UTF-8, Flask was more lenient. However, Python includes non-text related encodings that could result in unexpected memory use by a request.

Flask will now detect the encoding of incoming JSON data as one of the supported UTF encodings, and will not allow arbitrary encodings from the request.

Install or Upgrade

Install from PyPI with pip:

pip install -U Flask

0.12.4

This is a repackage of 0.12.3 to fix an issue with how the package was built.

Upgrade

... (truncated)
Changelog

Sourced from flask's changelog.

Version 1.0.3

Released 2019-05-17

  • send_file encodes filenames as ASCII instead of Latin-1 (ISO-8859-1). This fixes compatibility with Gunicorn, which is stricter about header encodings than PEP 3333. (#2766)
  • Allow custom CLIs using FlaskGroup to set the debug flag without it always being overwritten based on environment variables. (#2765)
  • flask --version outputs Werkzeug's version and simplifies the Python version. (#2825)
  • send_file handles an attachment_filename that is a native Python 2 string (bytes) with UTF-8 coded bytes. (#2933)
  • A catch-all error handler registered for HTTPException will not handle RoutingException, which is used internally during routing. This fixes the unexpected behavior that had been introduced in 1.0. (#2986)
  • Passing the json argument to app.test_client does not push/pop an extra app context. (#2900)

Version 1.0.2

Released 2018-05-02

  • Fix more backwards compatibility issues with merging slashes between a blueprint prefix and route. (#2748)
  • Fix error with flask routes command when there are no routes. (#2751)

Version 1.0.1

Released 2018-04-29

  • Fix registering partials (with no __name__) as view functions. (#2730)
  • Don't treat lists returned from view functions the same as tuples. Only tuples are interpreted as response data. (#2736)
  • Extra slashes between a blueprint's url_prefix and a route URL are merged. This fixes some backwards compatibility issues with the change in 1.0. (#2731, #2742)
  • Only trap BadRequestKeyError errors in debug mode, not all BadRequest errors. This allows abort(400) to continue working as expected. (#2735)
  • The FLASK_SKIP_DOTENV environment variable can be set to 1 to skip automatically loading dotenv files. (#2722)

Version 1.0

Released 2018-04-26

  • Python 2.6 and 3.3 are no longer supported. (pallets/meta#24)
  • Bump minimum dependency versions to the latest stable versions: Werkzeug >= 0.14, Jinja >= 2.10, itsdangerous >= 0.24, Click >= 5.1. (#2586)
  • Skip app.run <Flask.run> when a Flask application is run from the command line. This avoids some behavior that was confusing to debug.
  • Change the default for JSONIFY_PRETTYPRINT_REGULAR to False. ~json.jsonify returns a compact format by default, and an indented format in debug mode. (#2193)
  • Flask.__init__ <Flask> accepts the host_matching argument and sets it on ~Flask.url_map. (#1559)
  • Flask.__init__ <Flask> accepts the static_host argument and passes it as the host argument when defining the static route. (#1559)
  • send_file supports Unicode in attachment_filename. (#2223)
  • Pass _scheme argument from url_for to ~Flask.handle_url_build_error. (#2017)
  • ~Flask.add_url_rule accepts the provide_automatic_options argument to disable adding the OPTIONS method. (#1489)
  • ~views.MethodView subclasses inherit method handlers from base classes. (#1936)
  • Errors caused while opening the session at the beginning of the request are handled by the app's error handlers. (#2254)
  • Blueprints gained ~Blueprint.json_encoder and ~Blueprint.json_decoder attributes to override the app's encoder and decoder. (#1898)
  • Flask.make_response raises TypeError instead of ValueError for bad response types. The error messages have been improved to describe why the type is invalid. (#2256)
  • Add routes CLI command to output routes registered on the application. (#2259)
... (truncated)
Commits
  • 99660cc release version 1.0.3
  • 3dc84ec Merge pull request #3206 from pallets/test-client-json
  • a4f0f19 don't push app context for test client json
  • f2c8540 Merge pull request #3169 from DamianSkrzypczak/3168-improve-warning-about-dev...
  • e2f4b53 Fix dev-server warning message readability (#3168)
  • ab3f922 Merge pull request #3154 from brunoais/more-explicit-session-transaction
  • 6142aa6 More explicit explanation: session testing
  • 55801b5 Merge pull request #3166 from mekarpeles/refactor/unused-url_join
  • ac78da0 removed unused reference to url_join
  • 814a7ea Merge pull request #3204 from pallets/azure
  • 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.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

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 ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • 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)

Finally, you can contact us by mentioning @dependabot.


Dependabot has been acquired by GitHub  🎉

@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels May 30, 2019
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