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 fix for Django order_by flaw #76

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

edarchis
Copy link
Member

Details: GHSA-xpfp-f569-q3p2

The proper way to address this would be to upgrade Django to 3.1.13 but it requires to update all the JSONField (and convert the NullBooleanField to BooleanField). While the JSONField seems to work when we remove the JSONFallback component, the boolean field does not work anymore with bit data types. They are compared with the boolean instead of 0 or 1.
I tried to check for updates on the mssql driver but it seems not to have moved in a long while.

I have therefore implemented the same kind of fix as the 3.1.13 did, right into the OrderedDjangoConnectionField...

Details: GHSA-xpfp-f569-q3p2

The proper way to address this would be to upgrade Django to 3.1.13 but it requires to update all the JSONField (and convert the NullBooleanField to BooleanField). While the JSONField seems to work when we remove the JSONFallback component, the boolean field does not work anymore with `bit` data types. They are compared with the boolean instead of 0 or 1.
I tried to check for updates on the mssql driver but it seems not to have moved in a long while.

I have therefore implemented the same kind of fix as the 3.1.13 did, right into the OrderedDjangoConnectionField...
@edarchis edarchis requested a review from qgerome October 13, 2021 19:30
@edarchis edarchis merged commit d9f1d10 into develop Oct 18, 2021
@edarchis edarchis deleted the security/order_by_hotfix branch October 18, 2021 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant