chore(deps): update dependency django-filter to >=2.4.0,<2.5 [security] #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=2.0.0,<2.1
->>=2.4.0,<2.5
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
GitHub Vulnerability Alerts
CVE-2020-15225
Impact
Automatically generated
NumberFilter
instances, whose value was later converted to an integer, were subject to potential DoS from maliciously input using exponential format with sufficiently large exponents.Patches
Version 2.4.0+ applies a
MaxValueValidator
with a a defaultlimit_value
of 1e50 to the form field used byNumberFilter
instances.In addition,
NumberFilter
implements the newget_max_validator()
which should return a configured validator instance to customise the limit, or elseNone
to disable the additional validation.Workarounds
Users may manually apply an equivalent validator if they are not able to upgrade.
For more information
If you have any questions or comments about this advisory:
Thanks to Marcin Waraksa for the report.
Release Notes
carltongibson/django-filter (django-filter)
v2.4.0
Compare Source
SECURITY: Added a
MaxValueValidator
to the form field forNumberFilter
. This prevents a potential DoS attack if numbers with verylarge exponents were subsequently converted to integers.
The default limit value for the validator is
1e50
.The new
NumberFilter.get_max_validator()
allows customising the usedvalidator, and may return
None
to disable the validation entirely.Added testing against Django 3.1 and Python 3.9.
In addition tests against Django main development branch are now required to
pass.
v2.3.0
Compare Source
master
.v2.2.0
: Version 2.2Compare Source
Highlights:
DjangoFilterBackend.get_schema_operation_parameters()
for DRF 3.10+OpenAPI schema generation. (#1086)
lookup_expr
toMultipleChoiceFilter
(#1054)v2.1.0
: Version 2.1.0Compare Source
Fixed a regression in
FilterView
introduced in 2.0. An emptyQuerySet
wasincorrectly used whenever the
FilterSet
was unbound (i.e. when there wereno
GET
parameters). The correct, pre-2.0 behaviour is now restored.A workaround was to set
strict=False
on theFilterSet
. This is nolonger necessary, so you may restore
strict
behaviour as desired.Added
IsoDateTimeFromToRangeFilter
. Allows From-To filtering usingISO-8601 formatted dates.
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: