Mongodb compatibility for the server version


I am running an old version of mender.
image: ‘mendersoftware/deviceauth:2.0.0’
image: ‘mendersoftware/deployments:1.7.0’

the managed mongodb server upgraded from 4.4.29 to 5.0.26. But mender isnt compatible with the version of mongo. I get this below error,

failed to connect to db: failed to open mgo session: server returned error on SASL authentication step: BSON field 'saslContinue.mechanism' is an unknown field.

I understand that upgrading mender is the way to go. but are there any interim solution to run mender with mongo version 5.0.26?