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.10.1 to 0.12.3 in /requirements #33

Closed

Conversation

dependabot-preview[bot]
Copy link

Bumps flask from 0.10.1 to 0.12.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.

0.12.3

This release includes an important security fix for JSON and a minor backport for CLI support in PyCharm. It is provided for projects that cannot update to Flask 1.0 immediately. See the 1.0 announcement and update to it instead if possible.

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.

Upgrade

Upgrade from PyPI with pip. Use a version identifier if you want to stay at 0.12:

pip install -U 'Flask~=0.12.3'

Or upgrade to 1.0:

pip install -U Flask
Changelog

Sourced from flask's changelog.

Version 0.12.3

Released on April 26th 2018

  • Request.get_json no longer accepts arbitrary encodings. Incoming JSON should be encoded using UTF-8 per 8259, but Flask will autodetect UTF-8, -16, or -32. (#2692)
  • Fix a Python warning about imports when using python -m flask. (#2666)
  • Fix a ValueError caused by invalid Range requests in some cases.

Version 0.12.2

Released on May 16 2017

  • Fix a bug in safe_join on Windows.

Version 0.12.1

Bugfix release, released on March 31st 2017

  • Prevent flask run from showing a NoAppException when an ImportError occurs within the imported application module.
  • Fix encoding behavior of app.config.from_pyfile for Python 3. Fix [#2118](https://github-redirect.dependabot.com/pallets/flask/issues/2118).
  • Use the SERVER_NAME config if it is present as default values for app.run. [#2109](https://github-redirect.dependabot.com/pallets/flask/issues/2109), [#2152](https://github-redirect.dependabot.com/pallets/flask/issues/2152)
  • Call ctx.auto_pop with the exception object instead of None, in the event that a BaseException such as KeyboardInterrupt is raised in a request handler.

Version 0.12

Released on December 21st 2016, codename Punsch.

  • the cli command now responds to --version.
  • Mimetype guessing and ETag generation for file-like objects in send_file has been removed, as per issue [#104](https://github-redirect.dependabot.com/pallets/flask/issues/104). (#1849)
  • Mimetype guessing in send_file now fails loudly and doesn't fall back to application/octet-stream. (#1988)
  • Make flask.safe_join able to join multiple paths like os.path.join (#1730).
  • Revert a behavior change that made the dev server crash instead of returning an Internal Server Error (#2006).
  • Correctly invoke response handlers for both regular request dispatching as well as error handlers.
  • Disable logger propagation by default for the app logger.
  • Add support for range requests in send_file.
  • app.test_client includes preset default environment, which can now be directly set, instead of per client.get.

Version 0.11.2

Bugfix release, unreleased

  • Fix crash when running under PyPy3. (#1814)

Version 0.11.1

... (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 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.

Bumps [flask](https://github.com/pallets/flask) from 0.10.1 to 0.12.3. **This update includes security fixes.**
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/master/CHANGES.rst)
- [Commits](pallets/flask@0.10.1...0.12.3)

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels May 20, 2019
@dependabot-preview
Copy link
Author

Superseded by #34.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/requirements/flask-0.12.3 branch July 19, 2019 21:38
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.

1 participant